Community
Participate
Working Groups
20040506 Code assist for import statements shows inner types of a project not visible on the current classpath. Project1 and project2 are unreleated. project P1: package p1; class A1 { public static class A1Inner1 {} public static class A1Inner2 {} } project P2; package p2; import A| code assist here class A2 { public static class A2Inner1 {} public static class A2Inner2 {} }
I cannot reproduce the bug every time (i was able to reproduce it only one time and i don't know how)
I reproduce the bug in I200601311200 To reproduce the bug, edit A1.java and do not save the file. By doing this, the workingCopy will be use to find the type instead the index.
Created attachment 34358 [details] Possible fix
The bug seems to be inside BasicSearchEngine. Reassign to Frederic.
Created attachment 34488 [details] New patch to fix this issue Previous patch has side effect due to the fact that JavaSearchScope was not valid for working copies when their parent was not accessible...
Released in HEAD. Test case added in WorkingCopySearchTests
Verified for 3.2 M5 using build I20060214-0010