Closed yschimke closed 13 years ago
Ok thanks. ClassMate should be able to resolve self-references, so this is obvously a bug.
Ok, added unit test; need to figure out exactly how to untangle handling next. :)
It also fails for the simpler case <T extends Comparable<T>>
That is odd, as I did test case of Enum types (which are self-referential). Well, glad that it was found at any rate.
Ok, looks like self-refs are ok for classes, but not for methods with local generic type declarations.
More specifically, only class self-references (like "Class Enum<E extends Enum
Ok: fixed; needed to add local binding for unresolved type variables (roughly equivalent to finding binding to Object.class) before trying to resolve lower bound which is used to resolve something better. Now passes unit tests and appears to function as expected.
Also: will probably release patch version (0.5.4) tonight, since this is the only open bug for now.
The following Junit test code fails with a StackOverflow
Exception is below (for 0.5.3)