Community
Participate
Working Groups
Eclipse 3.1.0 I20050627-1435 compiles the following code. JDK1.5.0_04 does not. import java.util.List; class Foo { static <T extends Runnable> List<List<T>> foo() { return null; } } public class CompilerBug { { List<List> o = Foo.foo(); } }
javac reports: X.java:17: incompatible types; no instance(s) of type variable(s) T exist so that java.util.List<java.util.List<T>> conforms to java.util.List<java.util.List> found : <T>java.util.List<java.util.List<T>> required: java.util.List<java.util.List> List<List> o = Foo.foo(); ^ 1 error
Tuned inference semantics to reject inference from raw type when constraint is A == F. Added GenericTest#test867. Releasing to 3.1.2 and 3.2 streams. With this fix, method will be reported as not applicable (may be improved slightly in the future).
Now we report the following error: The method foo() in the type Foo is not applicable for the arguments () Verified for 3.2M4 in I20051212-2000
Verified for 3.1.2 in M20060109-0800.