This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 83043 - New Java Class wizard does not allow creation of class named package-info.java
Summary: New Java Class wizard does not allow creation of class named package-info.java
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-19 08:08 UTC by _ sandipchitale
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ sandipchitale 2006-08-19 08:08:07 UTC
New Java Class wizard does not allow creation of class named package-info.java 
which is used to store package level annotations. As a result it is very hard 
to create such a file within the IDE.

See 

http://java.sun.com/j2se/1.5.0/docs/guide/javadoc/whatsnew-1.5.0.html

"
package-info.java: You can now create a source file with this name to store 
package comments and annotations. It can be used in place of package.html 
(which supports only comments, not annotations). If package-info.java is 
present, javadoc should ignore package.html and look instead for the package 
doc comment immediately preceding the (possibly annotated) package 
declaration. The javadoc tool handles the selection and parsing of package-
info.java and package.html and passes the doc comments to the doclet. 
"
Comment 1 Jan Pokorsky 2006-08-21 12:15:18 UTC
Use the template Java Classes/Java Package Info instead.
Comment 2 _ sandipchitale 2006-08-21 15:24:39 UTC
Interesting. The use of Java Classes/Java Package Info template may be hard to 
discover for users. The online help did not mention anything about it.
Comment 3 Quality Engineering 2007-09-20 09:44:35 UTC
Reorganization of java component