Bug 8125

Summary: 'Could not uniquely map the type name' message opening type
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jerome Lanneluc CLA 2002-01-23 10:07:20 EST
Build 20020122

1. Create 2 java projects: JUnit1 and JUnit2
2. In each project, add junit.jar and add it to each project's buildpath
3. Add third java project test with both JUnit1 and JUnit2 on its buildpath
4. Delete JUnit2
5. Workbench->Open Type
6. Select AssertionFailedError and press OK
Observe: You get a message dialog saying: 'Could not uniquely map the type name'
Comment 1 Jerome Lanneluc CLA 2002-01-23 10:10:16 EST
PackageFragmentRoot.exists() returns true for root A/Junit1/junit.jar.
Problem is with PackageFragmentRoot.isOnClasspath() that uses isPrefixOf(IPath) 
to compare classpath instead of equals(...).
Comment 2 Philipe Mulet CLA 2002-01-23 11:28:24 EST
Good find.
Comment 3 Jerome Lanneluc CLA 2002-01-23 12:24:22 EST
Changed from isPrefixOf(...) to equals(...)