Bug 99662 - [1.5] JavaModel returns inexistent IType for package-info ICompilationUnits
Summary: [1.5] JavaModel returns inexistent IType for package-info ICompilationUnits
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.1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 99903
  Show dependency tree
 
Reported: 2005-06-13 10:25 EDT by Tobias Widmer CLA
Modified: 2005-09-26 10:50 EDT (History)
1 user (show)

See Also:


Attachments
Remove package-info type from being traversed by the SourceElementParser (893 bytes, patch)
2005-06-13 15:58 EDT, Olivier Thomann CLA
no flags Details | Diff
Test case added to SourceElementParserTests to verify the fix (1.80 KB, patch)
2005-08-02 13:10 EDT, Frederic Fusier 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: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.