Bug 44553 - IJavaProject.isOnClasspath(IJavaElement) wrongly returns true for class files which are in source folders
Summary: IJavaProject.isOnClasspath(IJavaElement) wrongly returns true for class files...
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-09 10:51 EDT by Frederic Fusier CLA
Modified: 2004-01-29 06: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 Frederic Fusier CLA 2003-10-09 10:51:22 EDT
I've noticed this incorrect behavior while looking at bug 43270.

Note that if this wrong return was fixed then it could be considered as the 
right implementation of scenario described in related bug 43270.

Then, we would get following Error Dialog:
"The classfile is not on the classpath"
which is the normal behavior as source folder is considered to be in the 
classpath only for .java files
Comment 1 Frederic Fusier CLA 2003-10-09 10:52:15 EDT
See also bug 44535
Comment 2 Frederic Fusier CLA 2004-01-13 11:11:27 EST
First it was bug 42370 and not 43270!
Second, in fact this was intentional as some users complain that class file 
cannot be opened in source folder. Although it's theoretically true that this 
folder is not in the classpath, it's diffuclt to explain why we cannot open 
class files when source files are just in the same folder!