Community
Participate
Working Groups
Build ID: v3.2.1 M20060921-0945 Steps To Reproduce: 1. Create a Java project called "A". 2. Create package 'com.ibm.sample' in project "A". 3. Create class 'Testit' in package com.ibm.sample in project "A". 4. Create a Java project called "B". 5. Close all open editors. projectA.findType ("com.ibm.sample.Testit"); - This returns type 'Testit' in project "A". projectB.findType ("com.ibm.sample.Testit"); - This returns 'null'. The above works as expected when the Java editor is closed. Now open the class com.ibm.sample.Testit in project "A" in the Java editor. With the editor now open: projectA.findType ("com.ibm.sample.Testit"); - This returns type 'Testit' in project "A". projectB.findType ("com.ibm.sample.Testit"); - This returns type 'Testit' in project "A". With the editor open, it is finding the type 'Testit' in the other project when it is clearly not on the classpath of project "B". projectB.findType should return 'null' when the type is open in the editor. More information:
Different scenario but same origin: non-visible working copies are not filtered when added to the NameLookup... *** This bug has been marked as a duplicate of bug 169970 ***
Verified for 3.4 M2 using build I20070917-0010.