Bug 25040 - getPackageFragmentRoots(CP entry) implementation doesn't match spec
Summary: getPackageFragmentRoots(CP entry) implementation doesn't match spec
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: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-18 07:13 EDT by Philipe Mulet CLA
Modified: 2002-11-13 06:59 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 Philipe Mulet CLA 2002-10-18 07:13:23 EDT
Build 20021016

The spec says that it should only answer roots if the CP entry is present on 
the classpath. If we stick to the spec, we should deprecate it and rename it 
into #findPackageFragmentRoots(CPEntry).

Accessorily, we could have it avoid populating projects which aren't opened yet.

Issue: are existing clients relying on the implementation rather than the spec?
Comment 1 Jerome Lanneluc CLA 2002-10-22 05:52:27 EDT
Deprecated getPackageFragmentRoots(IClasspathEntry) and added 
findPackageFragmentRoots(IClasspathEntry) that ensures that the entry is on the 
classpath.
Comment 2 David Audel CLA 2002-11-13 06:59:03 EST
Verified.