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 185479

Summary: Asynchronous CookieAction's performAction method is always called with an empty array of nodes
Product: platform Reporter: tschlegl <tschlegl>
Component: ActionsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description tschlegl 2010-05-05 08:02:15 UTC
The performAction(Node[] activatedNodes) method of a CookieAction is always called with an empty array of selected nodes if the action is asynchronous.
It seems that the array of nodes is stored in a ThreadLocal storage of the EDT. If actionPerformed is called outside the EDT from NodeAction.performAction a different ThreadLocal without the stored array of nodes is read. 

We found this regression in 6.9 Dev 201004280200.
Comment 1 Jaroslav Tulach 2010-05-05 09:54:49 UTC
Good catch. I'll fix it for 6.9.
Comment 2 Jaroslav Tulach 2010-05-05 13:21:10 UTC
core-main#fc6165babe60
Comment 3 Quality Engineering 2010-05-06 05:05:06 UTC
Integrated into 'main-golden', will be available in build *201005060200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: