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.
After fixing bug <http://www.netbeans.org/issues/show_bug.cgi?id=31743> I do not know a reproducible case. Anyway when you select a RMI Registry node in Runtime tab the CookieAction.enable method is getting 2 nodes as activatedNodes. One is RMIRegistryNode and one is its FilterNode. I think there should be only one activatedNode as only one node is selected in the IDE.
Ok, let's look for what is going on.
Created attachment 9677 [details] Test that is reproducing the problem
Created attachment 9678 [details] Fix (includes API change) and a test
Created attachment 9679 [details] JAR patch for version 3.5
Jan, can you please verify that the attached patch solves the problem for the old version of RMI module?
Verified in Nevada build 030323.
This issue is not planned to be fixed for 3.5, changing TM = 4.0
Guys can you check this diff? I think I'd apply that just for main trunk as the conditions for reproducing the bug are really obscure and it is better not to tease 3.5. Ok?
Checking in api/doc/changes/apichanges.xml; /cvs/openide/api/doc/changes/apichanges.xml,v <-- apichanges.xml new revision: 1.152; previous revision: 1.151 done Processing log script arguments... More commits to come... Checking in src/org/openide/nodes/FilterNode.java; /cvs/openide/src/org/openide/nodes/FilterNode.java,v <-- FilterNode.java new revision: 1.79; previous revision: 1.78 done Processing log script arguments... More commits to come... Checking in src/org/openide/windows/DefaultTopComponentLookup.java; /cvs/openide/src/org/openide/windows/DefaultTopComponentLookup.java,v <-- DefaultTopComponentLookup.java new revision: 1.12; previous revision: 1.11 done Processing log script arguments... More commits to come... Checking in test/unit/src/org/openide/windows/TopComponentGetLookupTest.java; /cvs/openide/test/unit/src/org/openide/windows/TopComponentGetLookupTest.java,v <-- TopComponentGetLookupTest.java new revision: 1.11; previous revision: 1.10 done Processing log script arguments... More commits to come... Checking in openide-spec-vers.properties; /cvs/openide/openide-spec-vers.properties,v <-- openide-spec-vers.properties new revision: 1.112; previous revision: 1.111 done openide/loaders/src/org/openide/loaders/InstanceDataObject.java, rev. 1.3
fixed lon time ago - verified