Community
Participate
Working Groups
The following TestCase does not compile if you specify the compiler option -source 1.4. It seems as if the compiler did not consider the bridge method "int compare(Object o)" in class java.lang.Integer a valid overload, although it ought to be. This behaviour prevents our whole project from building in a JDK5 environment! public class TestLookup { public static void main(String[] args) { Integer i1 = new Integer(0); Object i2 = new Integer(1); i1.compareTo(i2); } }
Nice, seems to have been fixed for Eclipse 3.2 *** This bug has been marked as a duplicate of 124943 ***