Community
Participate
Working Groups
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.
Created attachment 16801 [details] Project with anonymous class refering to a non-public class
Created attachment 16804 [details] Plugin that tickles the bug on startup
I believe this is a duplicate of bug 36032.
*** This bug has been marked as a duplicate of 36032 ***