Community
Participate
Working Groups
I20050209-0800 A parameterized inner type is illegal without an explicit parameterized outer type: --------------------------------------------- package xy; import xy.Map.Entry; class Map<M> { class Entry<E> { } } class User { void a(Entry<String> e) { } // Entry<String> is illegal (eclipse accepts) void c(Map.Entry<String> e) { } // illegal (correctly flagged) void b(Entry e) { } // OK void d(Map<Integer>.Entry<String> e) { } // OK } --------------------------------------------- javac's opinion about "Entry<String>": improperly formed type, type parameters given on a raw type
Tuned ParameterizedSingleTypeReference to better recognize invalid member type case (when generic). Also increased checking for non-static member type reference in static context. Added GenericTypeTest#test613-616+618. Fixed, will be released along with changes for bug 84496
Released
Verified in I20050510-0010