Community
Participate
Working Groups
Bugzilla – Bug 170064
[1.5] [compiler] Unchecked cast warning reported when javac reports inconvertible error
Last modified: 2011-06-03 03:10:54 EDT
I20061219-1300 From the newsgroup, the following test case triggers an unchecked cast warning with Eclipse compiler, whereas javac 1.5 reports an inconvertible types error. public class Test { public static class Foo<T>{ } public static class Bar<T> extends Foo<T>{ } public <Z,E extends Foo<Z>> Class<E> test(){ return (Class<E>) Bar.class; } }
Similar situation to bug 148046.
I'll follow up on this.
Same issue as bug 322531 *** This bug has been marked as a duplicate of bug 322531 ***