Community
Participate
Working Groups
Created attachment 114965 [details] Bug Example I've just convert some old code to an Eclipse Project, and the code was compiling fine without any warning using javac and thrown an error when using Eclipse. It appears that there is a bug in some Eclipse compiler. Refering at the Example file, two errors are spawned by Eclipse : Name clash: The method foo(Bar<A>, Bar<A>) of type Foo<A>.FooBar has the same erasure as foo(Bar<A>, Bar<A>) of type Bar<A>.Baz but does not override it in Foo.java, line 22 and The method foo(Bar<A>, Bar<A>) in the type Quux<A>.Baz is not applicable for the arguments (Bar<A>, Bar<A>) in Foo.java, line 24 replacing line 20 by "protected class FooBar extends Bar<A>.Baz" or removing all the use of generics fix both...
Kent - pls look at the nameclash issue, also let me know if the generic inference is also at fault.
Just to confirm this... I'm using source level 1.6 (6.0) (not 1.5 [5.0])...
Tried to reproduce in our latest build and this case appears to be fixed. Mathieu - Please try your real case with the latest 3.5 stream integration build from here http://download.eclipse.org/eclipse/downloads/
I believe this is a duplicate of bug 243820 which was fixed for 3.4.2
*** This bug has been marked as a duplicate of bug 243820 ***
I do not reproduce this bug in 3.4.1, 3.5M1 and 3.5M2 but i reproduce it in 3.4. So this bug is fixed but is not a duplicate of bug 243820. Kent - If you agree with me, could you change to WORKSFORME the resolution of this bug ?
.
David - this was fixed by bug 238817 *** This bug has been marked as a duplicate of bug 238817 ***
Verified for 3.5M4 using I20081208-1800
Verified for 3.4.1 as per comment 6