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 204689 - "Set Current Thread" always enabled on Mac OS X
Summary: "Set Current Thread" always enabled on Mac OS X
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.1
Hardware: PC Mac OS X
: P4 normal (vote)
Assignee: Martin Entlicher
Depends on:
Reported: 2011-11-04 15:34 UTC by Jiri Kovalsky
Modified: 2014-02-07 14:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

Screenshot of enabled "Set Current Thread" menu item. (604.59 KB, image/png)
2011-11-04 15:34 UTC, Jiri Kovalsky

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2011-11-04 15:34:11 UTC
Created attachment 112844 [details]
Screenshot of enabled "Set Current Thread" menu item.

Product Version: NetBeans IDE Dev (Build 201111030600)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02-384
System: Mac OS X version 10.6.6 running on x86_64; MacRoman; en_US (nb)
User directory: /Users/cesilko/.netbeans/dev
Cache directory: /Users/cesilko/.netbeans/dev/var/cache

"Debug > Set Current Thread" menu item is enabled if MemoryView is opened even if debugger is not actually running. See attached screenshot. This seems to be a Mac OS X specific problem.

Steps to reproduce:
1. Launch NetBeans 7.1 on Mac OS X.
2. Generate a AnagramGame sample Java project.
3. Invoke "Debug" item from main menu.
4. Verify that "Set Current Thread" item is enabled although debugger is not running and there are no threads to switch between.
Comment 1 Martin Entlicher 2011-11-07 15:36:54 UTC
It may be some incompatibility of Swing properties, I've replaced "ancestor" property with HierarchyListener.
Fixed by changeset:   206437:57857884e669
Comment 2 Quality Engineering 2011-11-08 15:39:48 UTC
Integrated into 'main-golden'
Log: #204689 "ancestor" property is replaced with HierarchyListener.
Comment 3 Jiri Kovalsky 2011-11-09 10:34:09 UTC
I am sorry but this fix didn't help. The action is still enabled in development build #201111080600. I am reopening this bug.
Comment 4 Martin Entlicher 2011-11-09 10:50:04 UTC
Hmm, so I have to test this really on Mac to see what's different there...
Comment 5 Martin Entlicher 2011-11-16 10:13:27 UTC
I've tried to fix it by changeset:   207327:7d88599113e4, but it still does not work on Mac. We do not get the HierarchyEvent when the menu item is showing.
Comment 6 Quality Engineering 2011-11-17 07:31:03 UTC
Integrated into 'main-golden'
Log: #204689: An attemtp to fix the enabled state of Set Current Thread action on Mac. Fixes the enabled state when the action stays visible, but does not fix the problem on Mac.
Comment 7 Jiri Kovalsky 2012-06-08 12:50:44 UTC
Still valid for NetBeans 7.2 build #201206080001.
Comment 8 Jiri Kovalsky 2012-11-19 13:12:52 UTC
Still valid for NetBeans 7.3 build #201211190002.
Comment 9 Martin Entlicher 2013-08-22 15:52:39 UTC
P4 IMHO, this looks like a minor problem.
Comment 10 Jiri Kovalsky 2014-02-07 14:26:49 UTC
Still valid in NetBeans 8.0 development build #201402060001.