Bug 98505

Summary: Getting Compiler Error when instantiated class is package private and not open in Editor
Product: [Eclipse Project] JDT Reporter: Benjamin Pasero <ENJ>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Benjamin Pasero CLA 2005-06-06 09:52:05 EDT
Version: 3.1.0
Build id: N20050606-0010

Steps to reproduce:
1.) Have a Class Bar like this:

class PackagePrivateClass {

}

public class Bar {

}

2.) Have a Class Foo like this:

public class Foo {
  PackagePrivateClass test = new PackagePrivateClass();
}

3.) Close the Editor showing "Bar.java"

Actual Results:
"Foo.java" shows compiler errors: "PackagePrivateClass cannot be resolved or is
not a type"

Expected Results:
No Compile Errors.

Note that as soon as the Editor containing the "PackagePrivateClass" is open
again, the compile error goes away.

Regards,
Ben
Comment 1 Dirk Baeumer CLA 2005-06-06 11:17:58 EDT
Don't know if this is Text or Core. Moving to Text first.
Comment 2 Dani Megert CLA 2005-06-06 12:14:57 EDT

*** This bug has been marked as a duplicate of 87063 ***
Comment 3 Frederic Fusier CLA 2006-03-27 10:07:56 EST
Reopen to set as duplicate of original bug
Comment 4 Frederic Fusier CLA 2006-03-27 10:08:30 EST

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