Summary: | Wrong diagnosis compiling inner classes | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | 2.1 M5 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Olivier Thomann
2002-02-14 12:57:10 EST
Our behavior seems appropriate given the local class doesn't need any enclosing information (until it uses anything from the enclosing scopes). Inner-emulation is supposed to be lazily requesting access to enclosing elements, and Javac is simply asking too much by default, I had already noticed it was always requesting the enclosing instance by default. Will not change unless this is escaladated due to a JCK compliance issue. Closing, got fixed along with various innerclass adjustments. -> No enclosing instance of type Outer is accessible to invoke the super constructor. Must define a constructor and explicitly qualify its super constructor invocation with an instance of Outer (e.g. x.super() where x is an instance of Outer). Should remove later resolution Closing |