Bug 25040

Summary: getPackageFragmentRoots(CP entry) implementation doesn't match spec
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.