generic compile problem
Radim Kolar
hsn at filez.com
Tue Dec 11 12:00:44 PST 2012
I need to know if javac is correct. Eclipse Juno compiles it. Program
public class test2 <K> {
public void test() {
Class <? extends test2 <?>> t = test2.class;
}
}
C:\1>javac test2.java
test2.java:4: error: incompatible types
Class <? extends test2 <?>> t = test2.class;
^
required: Class<? extends test2<?>>
found: Class<test2>
1 error
discussion with remarks to JLS is at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=396231
More information about the compiler-dev
mailing list