Bug 77955

Summary: [1.5] member classes of super class are not allowed inside static import
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David Audel CLA 2004-11-05 10:25:15 EST
build I20041104

1) create Z.java
package p;
public class Z {
  public static class ZZ {
    public static final  int ZZZ = 0;
  }
}

2) create Y.java
package p;
public class Z {
}

3) create X.java
import static p.Y.ZZ.ZZZ;
public class X {
}

4) compile

there is no error but with javac there is 1 error

X.java:1: import requires canonical name for p.Z.ZZ
import static p.Y.ZZ.ZZZ;
                  ^
1 error
Comment 1 Kent Johnson CLA 2004-11-17 14:41:01 EST
Added StaticImport test 13
Comment 2 Olivier Thomann CLA 2004-12-14 15:11:13 EST
Verified in 200412140800