Summary: | Ambiguous methods and autoboxing | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Christoph Lembeck <christoph.lembeck> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M6 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Christoph Lembeck
2005-03-04 09:58:15 EST
*** This bug has been marked as a duplicate of 85491 *** Actually its not a duplicate of bug 85491 since that one is varargs related. I tried this case with javac & this is the error I get: 3: reference to equals is ambiguous, both method equals (java.lang.Object,java.lang.Object) in Test and method equals(int,int) in Test match equals(new Integer(42), 17); What version/build # of javac are you using? I'm using javac 1.5.0_01. (In reply to comment #3) > What version/build # of javac are you using? I'm using javac 1.5.0_01. OK, i changed from version 1.5.0-rc-b63 to 1.5.0_02-b09 and now the compiler produces the same error message as eclipse. |