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.
I created an Empty java project. I went to the Packages node and created a new package, "com.sun.joe". A node was displayed under the Packages node for this package. I selected the "com.sun.joe" node and selected "New File/Folder" and selected Classes->Class. On the next panel of the wizard, I specified "com.sun.joe" as the package and MyClass as the class name. I selected Finish and the java class was created (note, this took a LONG time.. about 1 minute). I went to the Packages node and selected "New File/Folder" from the menu. I selected "Classes->Class", selected Next and on the next panel, I specified the class name as AClass and the package as "com.sun". The class was created, but the resulting display under the Packages node is a little odd. I've attached a gif of what it looks like.
Created attachment 11334 [details] Image of java project nodes
Joe, if you happen to wait so long for a creation of a class, please shot a few thread dumps during that long period and file a perf. issue. AFAIK it might happen if the project's JDK jars was not yet opened and cached, but not after that.
The package nodes are exactly as it was specified in java-project uispec. Reassigning to HIE guys.
Vito, I think there's "com.sun.joe" that contains "joe" subpackage (duplicated). It seems as parent's dispname refresh problem, the "joe" was correctly split from the parent "com.sun" (formerly, before the second class' creation, com.sun was empty, so it was coalesced with com.sun.joe into one node), but the name was retained at the display.
Yes, it is a reproducible defect in code. No job for HIE guys.
Ah-a, sorry for confusion :-(.
Fixed.
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped. Marking issue as VERIFIED --->
---> CLOSED