Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 53597

Summary: Package access class marked as unresolved within package when defined along with other classes
Product: [Eclipse Project] JDT Reporter: Johan Persson <johanpersson76>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Johan Persson CLA 2004-03-03 07:58:43 EST
Steps to reproduce:

1.) Create package p
2.) Create public class MainA
3.) In file MainA.java, create default access class A
4.) In the same package, create public class UserOfA (in new file)

5.) Let UserOfA extend A
or
5.) Let UserOfA use A as a type

In both these cases the editor flags a problem in the file UserOfA.java. For 
the package as a whole (package explorer), no problem is flagged. The code can 
still be run and it seems to be functional.

Other observations:

i.) having class A in a separate file within the same package works fine
ii.) accessing class A from within the file where it is defined works fine
Comment 1 Jerome Lanneluc CLA 2004-03-04 05:56:00 EST

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