Bug 99654

Summary: [5.0] JavaModel returns both IClassFile and ICompilationUnit for package-info.java
Product: [Eclipse Project] JDT Reporter: Tobias Widmer <tobias_widmer>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dirk_baeumer
Version: 3.1   
Target Milestone: 3.1 RC3   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Changed validateClassFileName to accept package-info.class none

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