Bug 25433 - #findPackageFragmentRoots(IClasspathEntry)
Summary: #findPackageFragmentRoots(IClasspathEntry)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-27 20:27 EST by Darin Wright CLA
Modified: 2002-11-15 03:48 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.