Bug 78056 - [1.5] static import of a static member of a non static member type must be allowed
Summary: [1.5] static import of a static member of a non static member type must be al...
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-08 05:38 EST by David Audel CLA
Modified: 2004-12-14 15:13 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-08 05:38:25 EST
build I20041104

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

2) create X.java
import static p.Z.ZZ.ZZZ;
public class X {
}

3) compile with javac
there is no error

4) compile with eclipse
there is one error "The import p.Z.ZZ cannot be resolved"
Comment 1 Kent Johnson CLA 2004-11-17 14:41:33 EST
Added StaticImport test 14
Comment 2 Olivier Thomann CLA 2004-12-14 15:13:14 EST
Verified in 200412140800.
Reports a warning as the import is unused.