Bug 77955 - [1.5] member classes of super class are not allowed inside static import
Summary: [1.5] member classes of super class are not allowed inside static import
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-05 10:25 EST by David Audel CLA
Modified: 2004-12-14 15:11 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 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