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 - Never propose package name containing uppercases or _
Summary: Never propose package name containing uppercases or _
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Zezula
Depends on:
Blocks: 41537
  Show dependency tree
Reported: 2004-05-17 15:43 UTC by vbrabant
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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:

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):
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

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
new revision: 1.20; previous revision: 1.19
Checking in
new revision: 1.18; previous revision: 1.17
Comment 9 Quality Engineering 2007-09-20 09:48:03 UTC
Reorganization of java component