Bug 25433

Summary: #findPackageFragmentRoots(IClasspathEntry)
Product: [Eclipse Project] JDT Reporter: Darin Wright <darin.eclipse>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Darin Wright CLA 2002-10-27 20:27:23 EST
The mehtod IJavaProject.findPackageFragmentRoots(IClasspathEntry) claims to 
work when a variable is passed into the method. However, the implementation 
uses the resolved classpath, and thus no matches are found when a variable is 
passed in.

Javadoc: "If the classpath entry denotes a variable, it will be resolved and 
return the roots of the target entry (empty if not resolvable)."

I am passing in "JRE_LIB[CPE_VARIABLE][K_SOURCE][sourcePath:JRE_SRC]
[rootPath:JRE_SRCROOT][isExported:false]", but "null" is returned, even though 
JRE_LIB is on the classpath.

This is causing two debug tests to fail.
Comment 1 Philipe Mulet CLA 2002-10-28 06:16:21 EST
Indeed, we lost some functionality.
Will use the raw classpath instead.
Comment 2 Philipe Mulet CLA 2002-10-28 06:29:23 EST
Fixed
Comment 3 David Audel CLA 2002-11-15 03:48:39 EST
Verified.