Bug 99662

Summary: [1.5] JavaModel returns inexistent IType for package-info ICompilationUnits
Product: [Eclipse Project] JDT Reporter: Tobias Widmer <tobias_widmer>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: philippe_mulet
Version: 3.1   
Target Milestone: 3.1.1   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 99903    
Attachments:
Description Flags
Remove package-info type from being traversed by the SourceElementParser
none
Test case added to SourceElementParserTests to verify the fix none

Description Tobias Widmer CLA 2005-06-13 10:25:11 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
- Annotate package declaration in package-info.java with @Deprecated

-> Package Explorer and Outline show an inexistent interface package-info. The 
outline does not show a package declaration.

-> I would exspect the JavaModel to return a package declaration only
Comment 1 Olivier Thomann CLA 2005-06-13 15:58:43 EDT
Created attachment 22965 [details]
Remove package-info type from being traversed by the SourceElementParser
Comment 2 Jerome Lanneluc CLA 2005-06-13 17:58:46 EDT
For the fix to be complete, we should associate search results inside
package-info.java to the package fragment instead of a non-existing type.
Comment 3 Olivier Thomann CLA 2005-06-29 20:29:38 EDT
Philippe, this would be a good candidate for 3.1.1.
Comment 4 Frederic Fusier CLA 2005-08-02 13:10:22 EDT
Created attachment 25567 [details]
Test case added to SourceElementParserTests to verify the fix
Comment 5 Philipe Mulet CLA 2005-08-09 09:32:14 EDT
+1 for 3.1.1
Comment 6 Frederic Fusier CLA 2005-08-15 15:03:38 EDT
Patch released in HEAD stream
Comment 7 Frederic Fusier CLA 2005-08-16 10:22:32 EDT
Patches released in R3_1_maintenance stream
Comment 8 Olivier Thomann CLA 2005-09-20 14:36:54 EDT
Verified using I20050920-0010 for 3.2M2
Comment 9 Maxime Daniel CLA 2005-09-26 09:34:49 EDT
Verified for 3.1.1 using build M20050923-1430.