Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #426521 +++ The following produces a compiler error from javac, but compiles in Eclipse: import java.util.List; class Test { <U> void m(List<U> l, U v) { } <V> void m(List<V> l1, List<V> l2) { } void test(List<Object> l) { m(l, l); //JDK 6/7 give ambiguity here - EJC compiles ok } } Both methods are applicable (U and V both inferred as Object); neither is more specific than the other, per JLS 15.12.2.5 (in particular, no u can be inferred such that List<V> <: List<u> _and_ List<V> <: u). See also this javac bug, which was closed as "not an issue": https://bugs.openjdk.java.net/browse/JDK-7031404
bulk move out of 4.8
Bulk move out of 4.9
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.