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 43382

Summary: Never propose package name containing uppercases or _
Product: java Reporter: vbrabant <vbrabant>
Component: UnsupportedAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P4    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41537    

Description vbrabant 2004-05-17 15:43:23 UTC
When user creates a new J2SE project, a Project
Name is given by default (Java Project n).
And that project name is used for the proposal of
the main class:
org.Java_Project_N.Main.

But the guidelines for Java is the following:
packages would not contains _ or Uppercase letters.

So, please avoid to propose stuff like that.
Comment 1 Petr Hrebejk 2004-05-17 16:04:14 UTC
Let's see what will UI guys say.
Comment 2 Jesse Glick 2004-05-17 16:27:54 UTC
Actually I believe a mixedCasePackageName is OK. But certainly
starting a package name with an uppercase letter is strange.
Comment 3 jrojcek 2004-05-17 16:33:18 UTC
Agreed. The spec describes it (Create Main Class field description):

http://projects.netbeans.org/nonav/buildsys/j2se-project-ui-
spec.html#Step_2_New_Java_Application_Proj
Comment 4 Jesse Glick 2004-06-15 13:42:25 UTC
Tomas please evaluate.
Comment 5 Tomas Zezula 2004-06-15 14:49:45 UTC
Already fixed. The name is created without "_" and always starts with
low letter.
Comment 6 vbrabant 2004-06-15 16:03:50 UTC
Could you tell me when it has been fixed because with 20040608, it's
not yet fixed.

If you follow specs
http://projects.netbeans.org/nonav/buildsys/j2se-project-ui-spec.html#Step_2_New_Java_Application_Proj

I must be able to create a project 'My First Project' and having as
Main class myfirstproject.Main.

Or I obtain 'myFirstProject'.

So, I conclude that fix is not compliant with specs.

Thank you very much.

Comment 7 vbrabant 2004-06-17 21:36:37 UTC
I just tested with 200406161800 and creating a project like 'My First
Project" will create a package like 'myFirstPackage'.
And that's not compliant with your spec.
Comment 8 Tomas Zezula 2004-06-21 14:03:40 UTC
Checking in
j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/Bundle.properties;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.20; previous revision: 1.19
done
Checking in
j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/NewJ2SEProjectWizardIterator.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/NewJ2SEProjectWizardIterator.java,v
 <--  NewJ2SEProjectWizardIterator.java
new revision: 1.18; previous revision: 1.17
done
Comment 9 Quality Engineering 2007-09-20 09:48:03 UTC
Reorganization of java component