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 31182 - Please change default name of java package.
Summary: Please change default name of java package.
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-18 19:53 UTC by _ cliffwd
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 _ cliffwd 2003-02-18 19:53:56 UTC
When I'm in the explorer and I hit New / Java
Package, it prompts me for a package name.  If I
just hit return or click 'Finish', it picks
"Package".  Please change that to "package".
The naming convention for Java packages is all
lowercase.
Also, this is causing problems for me when I want
to use the full classname of a class inside of it.
 For instance, if I have a "Foo" class inside of
"Package", and I want to say "new Package.Foo()",
I get compile errors since java.lang.* is always
imported (java.lang.Package conflicts with it).
Comment 1 _ cliffwd 2003-02-18 20:01:30 UTC
I just realized that "package" can not be used either, since it's a
Java keyword.
A default name needs to be picked that's not in java.lang and it
should follow standard java naming conventions.  So, I suggest "pkg".
Comment 2 Svata Dedic 2003-02-27 18:24:13 UTC
Good, fixed in trunk: 
Checking in 
src/org/netbeans/modules/java/ui/wizard/Bundle.properties; 
/cvs/java/src/org/netbeans/modules/java/ui/wizard/Bundle.properties,v  
<--  Bundle.properties 
new revision: 1.20; previous revision: 1.19 
done 
Checking in 
src/org/netbeans/modules/java/ui/wizard/JavaPackageIterator.java; 
/cvs/java/src/org/netbeans/modules/java/ui/wizard/JavaPackageIterator.java,v  
<--  JavaPackageIterator.java 
new revision: 1.7; previous revision: 1.6 
 
Comment 3 Jan Becicka 2003-03-10 15:09:39 UTC
VERIFIED
Comment 4 Quality Engineering 2007-09-20 11:59:26 UTC
Reorganization of java component