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.
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.
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.
fixed in trunk. see #92979
I do not see any change. See screenshot.
Created attachment 38604 [details] screenshot
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
fixed in trunk when processing libraries classes a special workaround is used to exclude all classes present in the sources
verified