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 104299 - Options Panel wizard: race condition in the generated code
Summary: Options Panel wizard: race condition in the generated code
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on: 106989
Blocks:
  Show dependency tree
 
Reported: 2007-05-18 17:47 UTC by Andrei Badea
Modified: 2007-07-17 11:18 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 Andrei Badea 2007-05-18 17:47:45 UTC
The Javadoc of OptionsPanelController says applyChanged() can be called before
update(). It seems there is a race condition in the generated code which, in
this case, causes the options to be overwritten with the data in the empty,
uninitialized panel.
Comment 1 Jesse Glick 2007-05-19 02:25:57 UTC
If you know how to patch it, please go ahead and do so.
Comment 2 Andrei Badea 2007-06-26 15:37:35 UTC
Waiting for issue 106989 because I want to know OptionsPanelController's threading model first.
Comment 3 Andrei Badea 2007-07-17 11:18:53 UTC
Fixed by the fix of issue 106989.