Bug 81744 - [model] Anonymous class has trouble resolving non-public class in another compilation unit
Summary: [model] Anonymous class has trouble resolving non-public class in another com...
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: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-21 12:27 EST by Edwin Chan CLA
Modified: 2006-03-28 08:55 EST (History)
0 users

See Also:


Attachments
Project with anonymous class refering to a non-public class (3.43 KB, application/octet-stream)
2004-12-21 12:28 EST, Edwin Chan CLA
no flags Details
Plugin that tickles the bug on startup (7.90 KB, application/x-zip-compressed)
2004-12-21 13:18 EST, Edwin Chan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Chan CLA 2004-12-21 12:27:12 EST
I've included a Java project that demonstrates the problem.

I get the error 'AnotherClass cannot be resolved to a type" in the left margin 
of the Java editor window, when you open FirstClass.java by itself.  However, 
this gets resolved when you open SecondClass.java, which contains the non-
public class AnotherClass.

In my plugin, I was getting a null pointer back from Name.resolveBinding(), 
which led me to look to see why this was happening.  I'll try to write a little 
plugin to demonstrate this.
Comment 1 Edwin Chan CLA 2004-12-21 12:28:09 EST
Created attachment 16801 [details]
Project with anonymous class refering to a non-public class
Comment 2 Edwin Chan CLA 2004-12-21 13:18:10 EST
Created attachment 16804 [details]
Plugin that tickles the bug on startup
Comment 3 Olivier Thomann CLA 2005-01-05 19:24:41 EST
I believe this is a duplicate of bug 36032.
Comment 4 Jerome Lanneluc CLA 2006-03-28 08:55:07 EST

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