Bug 27499

Summary: Bogus ClasspathVariableInitializer is found in JavaModel
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.