Bug 91804

Summary: JavaProject.isOnClasspath(IJavaElement) should avoid resolving classpath
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: performance
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jerome Lanneluc CLA 2005-04-18 17:58:06 EDT
I20050413

JavaProjec.isOnClasspath(IJavaElement) should use the raw classpath when
possible (e.g. if the element is a compilation unit)
Comment 1 Jerome Lanneluc CLA 2005-04-19 17:49:35 EDT
As of I20050419, isOnClasspath is no longer called by JDT UI on startup. This
lowers the priority of this bug.
Comment 2 Jerome Lanneluc CLA 2005-04-22 04:06:15 EDT
Changed JavaProject#isOnClasspath(IJavaElement) to first get the raw classpath
and see if the element is on the raw classpath. If it is a compilation unit,
returns false. Otherwise look at the resolved entries.
Comment 3 Frederic Fusier CLA 2005-05-12 07:21:56 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.