Bug 26843 - Compiler - Does not detect non-visible member type.
Summary: Compiler - Does not detect non-visible member type.
Status: RESOLVED DUPLICATE of bug 26841
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-21 07:22 EST by David Audel CLA
Modified: 2003-03-23 12: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 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 ***