Bug 26843

Summary: Compiler - Does not detect non-visible member type.
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description David Audel CLA 2002-11-21 07:22:33 EST
build 20021119

1) create X.java
package p;
public class X {
   private class Y {
      public class Z {
      }
   }
}
2) create A.java
import p.X.Y.Z;
public class A {
}
3) do ctrl+B (Build)
There is no error.

Compile these files with javac 1.4.1, 2 errors are detected:

D:\workspace\Project\src\p\A.java:1: p.X.Y has private access in p.X
import p.X.Y.Z;
           ^
D:\workspace\Project\src\p\A.java:1: p.X.Y.Z in p.X.Y is not defined in a 
public class or interface; cannot be accessed from outside package
import p.X.Y.Z;
             ^
Comment 1 Philipe Mulet CLA 2002-11-21 08:37:00 EST

*** This bug has been marked as a duplicate of 26841 ***