Bug 237036 - [compiler] Confusing error message when extending a non static member class
Summary: [compiler] Confusing error message when extending a non static member class
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-13 05:36 EDT by Jerome Lanneluc CLA
Modified: 2008-06-13 05:38 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2008-06-13 05:36:19 EDT
I20080611-2000

1. Create the following CU:
public class X {
	public class Y {
	}
}
class Z extends X.Y {
}
2. You get the following error message:
No enclosing instance of type X is available due to some intermediate constructor invocation

I find this message confusing. Especially the last part that talks about "some" constructor invocation, and I don't see what the "some" refers to (there is no constructor invocation in the source).

Maybe we are trying to be too accurate. "No enclosing instance of type X is available" would be less confusing.