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

Summary: default package -> unnamed package
Product: java Reporter: ivan <ivan>
Component: ProjectAssignee: Petr Hrebejk <phrebejk>
Status: RESOLVED WONTFIX    
Severity: blocker CC: jrojcek
Priority: P4 Keywords: UI
Version: 4.x   
Hardware: Sun   
OS: SunOS   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    

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.