Bug 27499 - Bogus ClasspathVariableInitializer is found in JavaModel
Summary: Bogus ClasspathVariableInitializer is found in JavaModel
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-02 10:50 EST by Philipe Mulet CLA
Modified: 2002-12-18 09:54 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-12-02 10:50:29 EST
Build 20021126

Java files in non-Java project seems to get indexed.

1- Load project jdt-core-home (non-java project)
2- Open type (ctrl-shift-T) and type in "ClasspathVariableInitializer".
3- Observe that one match is found inside a non-java project - should not 
(means it got incorrectly indexed)!!!
4- Select it, a dialog will open, claiming the unit could not be opened.

Step (4) also occurs when manually navigating to the file in jdt-core-home.
Comment 1 Jerome Lanneluc CLA 2002-12-02 12:13:23 EST
JavaModelManager.getPerProjectInfoCheckExistence(IProject) was not checking if 
the project had the Java nature.
Comment 2 David Audel CLA 2002-12-18 09:54:10 EST
Verified.