#348 AbstractTypeAwareCheck not accurate for inner classes

release_4.0
closed
5
2012-10-10
2005-07-10
chiaroscuro
No

AbstractTypeAwareCheck seems broken to me when
dealing with multiple inner classes. For example with the
following input the current class is not accurate for class
Gee (we got Gee and not FooInput$Gee as expected) :

public class FooInput {
class Bar {}
class Gee {}
}

=> processClass CLASS_DEF[5x0] FooInput
=> processClass CLASS_DEF[10x1] FooInput$Bar
=> leaveToken CLASS_DEF[10x1] FooInput$Bar
<= leaveToken
=> processClass CLASS_DEF[13x1] Gee
=> leaveToken CLASS_DEF[13x1] Gee
<= leaveToken
=> leaveToken CLASS_DEF[5x0]
<= leaveToken

I think the problem may be in the leaveToken method
since it seems to unwind the names according to ".". I
was expecting to see "$" instead.

Discussion

  • Logged In: YES
    user_id=746148

    I believe, that I fixed this in beta 4 by fix for either
    1168408 or 1220726
    (one og these bugs had the same cause as this one).
    So, I close this as duplicate.