Bug 98505 - Getting Compiler Error when instantiated class is package private and not open in Editor
Summary: Getting Compiler Error when instantiated class is package private and not ope...
Status: RESOLVED DUPLICATE of bug 36032
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.2 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-06 09:52 EDT by Benjamin Pasero CLA
Modified: 2006-03-27 10:09 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 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 ***