Community
Participate
Working Groups
Open a new project a create a new class X: public class X { void foo() { } } Create a new class Y: public class Y { void foo() { } } Modify class Y as follow: public class Y { void foo() { StringBuffer buffer; StringTokenize } } when I launch the completion after "StringTokenize" then I get following list: - StringTokenizer - java.util Modify now class X (no matter what the modification is) but DO NOT SAVE it. When I come back on class Y an relaunch the completion after "StringTokenize", then I get following list: - StringTokenizer - java.util - X(default package) I would not expect X as a valid completion... It seems that in the list now appears all the current class on which an editor is opened and dirty...
*** Bug 45000 has been marked as a duplicate of this bug. ***
Changed SearchEngine.searchAllTypeNames(...) to filter types in working copy based on the given pattern. Added regression tests WorkingCopySearchTests.testAllTypeNames3() and testAllTypeNames4()
Verified.