Bug 29404 - JavaCore.create(IProject) returns != null for non Java Projects.
Summary: JavaCore.create(IProject) returns != null for non Java Projects.
Status: RESOLVED DUPLICATE of bug 28545
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 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-13 12:37 EST by Dirk Baeumer CLA
Modified: 2003-01-14 05:23 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 Dirk Baeumer CLA 2003-01-13 12:37:45 EST
Build I20030107

- create a non Java Project
- create a Java project using the following code
  IJavaProject project= JavaCore.create(IProject).
  observe: this returns an instance
- call project.exists()
  observe: this returns true.

What is the correct way to figure out that this is not a Java project. Should 
create return null in this case
Comment 1 Philipe Mulet CLA 2003-01-14 04:53:17 EST
No, you can always create handle onto non-existing entities. However, the 
existency check is suspicious.
Comment 2 Jerome Lanneluc CLA 2003-01-14 04:58:44 EST
project.exists() should return false

*** This bug has been marked as a duplicate of 28545 ***