Community
Participate
Working Groups
Build 20021216 (and also 20021213) Open type for types in rt.jar not working. Note the test case below surfaces the problem. I saw the same problem in my large workspace without manipulating the .project file. 1. Start empty workspace 2. Create a Java project "J" 3. Create a Java project "R" 4. Add "R" as required project to "J" 5. Open R/.project 6. Remove the build command and the nature from the xml 7. Save 8. Exit 9. Restart the workbench 10. Open Type "Object" ==> Error dialog: "Could not uniquely map the type name to a type" The dialog should at least give the user a hint to check the build path.
This seems to be a core bug. After restarting the workbench the content of the "J" project is empty in the package explorer. Calling findElement on project "J" with a path of java/lang/Object.class returns null. But they all types search engine turns a type Object.
*** Bug 28326 has been marked as a duplicate of this bug. ***
Changed JavaProject.computePackageFragmentRoots(IClasspathEntry, ObjectVector, ...) to check if the prereq project has the Java nature instead of just checking if it was accessible.
Verified.