Bug 65897 - eclipse rejects legal Java involving a static inner class
Summary: eclipse rejects legal Java involving a static inner class
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1.2   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-06-06 03:53 EDT by Jacob Butcher CLA
Modified: 2009-08-30 02:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Butcher CLA 2004-06-06 03:53:42 EDT
(My version of Eclipse is actually 2.1.3, but that didn't seem to be a choice.)

I have a class A (for ancestor) that contains a member m.
I have another class W (for wrapper) that also contains a member m.
Class W contains a static inner class N (for nested) that extends class A.

Eclipse complains that references to member m in class N are ambiguous, which
they are not since class N is a _static_ inner class so instances of class N
have no instance of class W from which to obtain member m and thus must always
use member m inherited from class A.

My Sun Java compiler was perfectly happy with the code, and so am I based on my
reading of the language specification (which is fairly thorough).  I'm pretty
sure it's a bug in Eclipse.

By the way, niiiice piece of software.  And you can't argue with free!  Thanks.
Comment 1 Philipe Mulet CLA 2004-06-06 18:24:02 EDT
Pls attach a testcase demonstrating the issue you are seeing; then reopen.
Comment 2 Frederic Fusier CLA 2005-02-17 09:49:26 EST
Closing as never got requested information
Comment 3 Denis Roy CLA 2009-08-30 02:05:14 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.