| Summary: | Getting Compiler Error when instantiated class is package private and not open in Editor | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Benjamin Pasero <ENJ> |
| Component: | Core | Assignee: | 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: | |||
Don't know if this is Text or Core. Moving to Text first. *** This bug has been marked as a duplicate of 87063 *** Reopen to set as duplicate of original bug |
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