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 35452 - Node display is confusing after creating java class
Summary: Node display is confusing after creating java class
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-15 16:03 UTC by Unknown
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Image of java project nodes (3.97 KB, image/gif)
2003-08-15 16:05 UTC, Unknown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2003-08-15 16:03:48 UTC
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.
Comment 1 Unknown 2003-08-15 16:05:10 UTC
Created attachment 11334 [details]
Image of java project nodes
Comment 2 Svata Dedic 2003-08-16 16:44:40 UTC
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.

Comment 3 Vitezslav Stejskal 2003-08-18 08:36:25 UTC
The package nodes are exactly as it was specified in java-project
uispec. Reassigning to HIE guys.
Comment 4 Svata Dedic 2003-08-18 10:02:50 UTC
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. 
Comment 5 Jan Pokorsky 2003-08-18 10:56:45 UTC
Yes, it is a reproducible defect in code. No job for HIE guys.
Comment 6 Vitezslav Stejskal 2003-08-18 13:15:24 UTC
Ah-a, sorry for confusion :-(.
Comment 7 Tomas Zezula 2003-08-20 16:08:09 UTC
Fixed.
Comment 8 Jan Becicka 2003-11-25 14:03:04 UTC
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 --->
Comment 9 Jan Becicka 2003-11-25 14:12:09 UTC
---> CLOSED