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 46226 - default package -> unnamed package
Summary: default package -> unnamed package
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: Sun SunOS
: P4 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords: UI
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-07-16 03:59 UTC by ivan
Modified: 2004-09-07 10:31 UTC (History)
1 user (show)

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 ivan 2004-07-16 03:59:20 UTC
If you have no package declaration in your
.java file then it goes into what the JLS
calls the "unnamed package" (JLS2 7.4.2).
Perhaps we should be consisten with the JLS
and call the placeholder in the Projects tree 
unnamed package instead of the default package?
Comment 1 jrojcek 2004-07-16 15:37:39 UTC
The problem I see with the "unnamed" package is that the first thing the user would do is 
to give it a name. The problem is that we don't allow to rename the default package. 
Otherwise I think I like "unnamed" more then "default". So if we allow the user to rename 
it, then I am fine with "unnamed".

Btw, why don't we allow to rename the default package if we allow to rename other 
packages?
Comment 2 Jan Becicka 2004-07-20 15:51:28 UTC
> Btw, why don't we allow to rename the default package if we allow to
rename other packages?

Default package is something like "/" folder on Linux. It is not a
good idea to put any files in this folder and you cannot rename it.
Comment 3 Petr Hrebejk 2004-09-07 10:31:59 UTC
Let's leave it default package.