Community
Participate
Working Groups
1. Start a new workspace on a 1.5 JRE 2. In the Package Explorer,paste the following: @Deprecated @Deprecated package example; Observe: It creates a cu Snippet.java with the following content: package snippet; public class Snippet { public static void main(String[] args) { @Deprecated @Deprecated } public static void main(String[] args) { package example; } } I expected it would create a package-info.java file with the clipboard content.
package-info.java - why?
Since there is no type, the only valid .java file with this content is package-info.java.
Well, the idea is to help you with snippets from bug reports. No one would probably ever want a package-info being created here.
I also think that package-info is a special case. Nice to have...