Summary: | [1.5][compiler] Eclipse compiles code that cannot be compiled with JDK! | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Ingo R. Homann <ingo.homann> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1.2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Ingo R. Homann
2005-10-28 07:38:24 EDT
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. |