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 92326 - Duplicate nodes in Select Root Methods tree
Summary: Duplicate nodes in Select Root Methods tree
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-11 13:48 UTC by ehucka
Modified: 2007-03-21 14:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (21.45 KB, image/png)
2007-02-16 11:17 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2007-01-11 13:48:13 UTC
Steps to reproduce:

1. select a method of AnagramGame project as root method
2. open Specify Root Methods dialog, invoke Add From Project button
3. there is a tree where a root node AnagramGame contains Source and Libraries
nodes, both contain com.toy.anagrams... packages selected

To deselect/remove one method a user has to uncheck both occurances of a method
in the tree. I think the checkboxies for nodes with same content should depend
(select of a method in sources selects appropriate node in libraries) or project
sources should not be placed in Libraries node.
Comment 1 Alexander Kouznetsov 2007-01-22 15:17:39 UTC
Profiler 070122
NetBeans IDE Dev (Build 200701211900)
1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251
Sun Java System Application Server Enterprise Edition 9.1 (build b28)

Another usecase:
- Open OrderSystem Sample Application
(http://www.netbeans.org/nonav/issues/showattachment.cgi/37566/order_system.zip).
- Open org.shop.OrderBean of its web module
- Right-click its sources and select Profiling > Select Profiling Root Methods.
- Choose Preset : Part Of Application. Click OK
- Switch to Default Package View.
- RESULT: There are two nodes for OrderBean class. This is a usability problem.
Hence raising the priority.
Comment 2 J Bachorik 2007-02-15 20:37:53 UTC
fixed in trunk. see #92979
Comment 3 ehucka 2007-02-16 11:15:59 UTC
I do not see any change. See screenshot.
Comment 4 ehucka 2007-02-16 11:17:12 UTC
Created attachment 38604 [details]
screenshot
Comment 5 J Bachorik 2007-02-16 11:25:42 UTC
it seems that the root cause for this is adding all compiled project classes to
the execute and compile classpath entries in project. hence, in order to
successfully reproduce the bug the project must be compiled. if you try
selecting root methods in a non compiled project everything works as supposed.
it's very unfortunate that right now i can not find any means to filter those
duplicities. for that to happen it would be required to get hold of at least
AntProjectHelper class to get all libraries defined for project. but this class
is  not published so I can't use it. hopefuly, in cooperation with guys from NB
project support i'll be able to sort it out. in the worst case i would have to
disable showing the library classes in the root method selector
Comment 6 J Bachorik 2007-03-19 10:16:08 UTC
fixed in trunk
when processing libraries classes a special workaround is used to exclude all
classes present in the sources
Comment 7 ehucka 2007-03-21 14:30:52 UTC
verified