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 - Asynchronous CookieAction's performAction method is always called with an empty array of nodes
Summary: Asynchronous CookieAction's performAction method is always called with an emp...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal with 3 votes (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 08:02 UTC by tschlegl
Modified: 2010-05-06 05:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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: