Bug 99654 - [5.0] JavaModel returns both IClassFile and ICompilationUnit for package-info.java
Summary: [5.0] JavaModel returns both IClassFile and ICompilationUnit for package-info...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1 RC3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-13 10:12 EDT by Tobias Widmer CLA
Modified: 2005-06-16 13:56 EDT (History)
1 user (show)

See Also:


Attachments
Changed validateClassFileName to accept package-info.class (2.55 KB, patch)
2005-06-13 18:01 EDT, Jerome Lanneluc CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Widmer CLA 2005-06-13 10:12:50 EDT
3.1 RC2

Steps to reproduce:
- Create Java project, use project folder as source folder and output folder
- Create package p
- Create package-info.java in package p

-> Package Explorer shows both class file and cu
Comment 1 Olivier Thomann CLA 2005-06-13 15:48:16 EDT
They don't appear if located in a source folder that is not the project.
Comment 2 Jerome Lanneluc CLA 2005-06-13 18:01:13 EDT
Created attachment 22987 [details]
Changed validateClassFileName to accept package-info.class
Comment 3 Philipe Mulet CLA 2005-06-15 07:40:19 EDT
+1 for RC3

Dirk - pls cast your vote
Comment 4 Dirk Baeumer CLA 2005-06-16 12:06:34 EDT
Sorry, Jerome I missed this one.

+1 for RC3.
Comment 5 Jerome Lanneluc CLA 2005-06-16 13:34:33 EDT
Thanks Dirk.
Released fix and added regression test
JavaProjectTests#testPackageFragmentPackageInfoClass()
Comment 6 Olivier Thomann CLA 2005-06-16 13:56:21 EDT
Verified using N20050616-0010 + JDT/Core HEAD