Bug 86167

Summary: [1.5] Add support for package-info.java
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 86380    
Attachments:
Description Flags
First patch
none
Updated patch to apply on HEAD
none
New patch to apply on HEAD
none
New patch to apply on HEAD
none
New patch to apply on HEAD (updated for all parsers)
none
Apply on HEAD none

Description Olivier Thomann CLA 2005-02-22 12:51:41 EST
The compiler should support a file called package-info.java. This file replaces
the package.html file. If it is present, it should be used by a documentation
generation tool.
See for details:
http://www.onjava.com/pub/a/onjava/2004/04/21/declarative.html?page=last
Comment 1 Olivier Thomann CLA 2005-02-23 16:29:55 EST
Created attachment 18261 [details]
First patch
Comment 2 Olivier Thomann CLA 2005-02-24 14:59:00 EST
Created attachment 18292 [details]
Updated patch to apply on HEAD
Comment 3 Olivier Thomann CLA 2005-03-09 16:44:46 EST
Created attachment 18609 [details]
New patch to apply on HEAD
Comment 4 Olivier Thomann CLA 2005-03-09 17:00:34 EST
*** Bug 87570 has been marked as a duplicate of this bug. ***
Comment 5 Olivier Thomann CLA 2005-03-09 17:01:10 EST
Created attachment 18611 [details]
New patch to apply on HEAD
Comment 6 Olivier Thomann CLA 2005-03-10 11:10:26 EST
Created attachment 18649 [details]
New patch to apply on HEAD (updated for all parsers)
Comment 7 Olivier Thomann CLA 2005-03-10 11:29:49 EST
Patch released in HEAD.
Comment 8 Olivier Thomann CLA 2005-03-30 23:07:34 EST
There is a problem if the package-info.java contains a problem. a NPE is thrown
in the compilation unit declaration resolution.
I will attach a patch for this problem.
Comment 9 Olivier Thomann CLA 2005-03-30 23:08:28 EST
Created attachment 19392 [details]
Apply on HEAD
Comment 10 Philipe Mulet CLA 2005-03-31 03:47:39 EST
+1 for M6
Comment 11 Philipe Mulet CLA 2005-03-31 03:51:20 EST
Released patch.
Comment 12 Philipe Mulet CLA 2005-03-31 03:51:57 EST
Olivier - pls add some regression test case.
Comment 13 Olivier Thomann CLA 2005-03-31 20:38:47 EST
Verified in I20050331-2000