Bug 250681 - [1.5][compiler] Eclipse compiler fail to propagate inherited nested class when using generics
Summary: [1.5][compiler] Eclipse compiler fail to propagate inherited nested class whe...
Status: VERIFIED DUPLICATE of bug 238817
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.4.1   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-13 15:02 EDT by Mathieu Lemoine CLA
Modified: 2009-04-24 06:56 EDT (History)
3 users (show)

See Also:


Attachments
Bug Example (360 bytes, text/x-java)
2008-10-13 15:02 EDT, Mathieu Lemoine CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Lemoine CLA 2008-10-13 15:02:17 EDT
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...
Comment 1 Philipe Mulet CLA 2008-10-14 08:20:28 EDT
Kent - pls look at the nameclash issue, also let me know if the generic inference is also at fault.
Comment 2 Mathieu Lemoine CLA 2008-10-14 08:27:26 EDT
Just to confirm this... I'm using source level 1.6 (6.0) (not 1.5 [5.0])...
Comment 3 Kent Johnson CLA 2008-10-14 11:32:33 EDT
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/
Comment 4 Kent Johnson CLA 2008-10-14 11:54:13 EDT
I believe this is a duplicate of bug 243820 which was fixed for 3.4.2
Comment 5 Kent Johnson CLA 2008-10-17 12:39:27 EDT

*** This bug has been marked as a duplicate of bug 243820 ***
Comment 6 David Audel CLA 2008-10-28 06:26:00 EDT
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 ?
Comment 7 Kent Johnson CLA 2008-10-28 15:42:28 EDT
.
Comment 8 Kent Johnson CLA 2008-10-28 15:43:18 EDT
David - this was fixed by bug 238817

*** This bug has been marked as a duplicate of bug 238817 ***
Comment 9 Olivier Thomann CLA 2008-12-09 12:54:41 EST
Verified for 3.5M4 using I20081208-1800
Comment 10 Frederic Fusier CLA 2009-04-24 06:56:41 EDT
Verified for 3.4.1 as per comment 6