Community
Participate
Working Groups
When declaring an enumeration within a class, the type parameters of the class are inherited. For instance here: public class SuperClass<Type> { static enum Inner { ELM } Inner getInner() { return null; } } public class SubClass extends SuperClass<String> { public Inner getInner() { return Inner.ELM; } } This causes an error because the type of ELM is given type SuperClass<Type>.Inner but and the return type in the subclass is taken to be SuperClass<String>.Inner. That doesn't seem right. Oddly enough, this is not a problem when the classes are in the same file.
*** This bug has been marked as a duplicate of 82349 ***