Community
Participate
Working Groups
HEAD, follow-up to bug 322817 The JavaCore.COMPILER_PB_UNAVOIDABLE_GENERIC_TYPE_PROBLEMS option misses references to a raw field from a supertype: package problems; import java.util.List; public class Super { protected List fList; } package problems; import java.util.List; public class Subclass extends Super { protected List fSubList; // raw type warning (good) void foo(String s) { fList.add(s); // type safety warning (TODO: bad, should be hidden) fSubList.add(s); // type safety warning (good, should not be hidden) } }
Created attachment 191197 [details] Patch under consideration
Released in HEAD for 3.7 M7
The classes given in comment 0, when in the same CU give the correct behaviour. But when in different CU's, the correct warning on fSubList also gets suppressed. Opened FUP bug 343838.
Verified for 3.7M7 using build I20110425-1800.