Bug 6101 - Unexpected error in inner class
Summary: Unexpected error in inner class
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P2 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-20 09:13 EST by David Audel CLA
Modified: 2002-01-11 09:34 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2001-11-20 09:13:39 EST
- create this class X.
  <----------------------------->
  public class X {
     public class Y extends X {}
     public class Z extends Y {}
  }
  <----------------------------->
- do a build.

there is an error : Cannot use this in a static context

same test case with
  javac 1.3 : OK
  javac 1.2.2 :
     X.java:2: No constructor matching X() found in class X.
             public class Y extends X {
                          ^
     X.java:5: Can't reference this before the superclass constructor has been 
called.
             public class Z extends Y {
                          ^
     2 errors
Comment 1 Philipe Mulet CLA 2002-01-09 11:15:43 EST
Problem was due to inner path emulation not preventing usage of implicit this 
inside explicit constructor calls.
Fixed