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 37529 - Ensure client code calls windows API from AWT thread only
Summary: Ensure client code calls windows API from AWT thread only
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: David Simonek
URL: http://www.netbeans.org/download/dev/...
Keywords:
Depends on: 37711 37738
Blocks:
  Show dependency tree
 
Reported: 2003-11-26 14:22 UTC by Peter Zavadsky
Modified: 2008-12-22 23:52 UTC (History)
3 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Zavadsky 2003-11-26 14:22:14 UTC
There is a need according to threading doc,
achieve that window system code processes in AWT
thread only.

In the final state should all API methods start with:
assert SwingUtilities.isEventDispatchThread();
line.

First there will be informational exception
announcing the change.
Comment 1 Peter Zavadsky 2003-11-27 13:39:57 UTC
TopComponentGroup API assertions added:

core/windows/../WindowManagerImpl.java 1.12
               /TopComponentGroupImpl.java 1.3
Comment 2 Peter Zavadsky 2003-12-03 14:31:37 UTC
Added informative exceptions to start to force modules to follow the rule:

core/windows/../ModeImpl.java 1.13
               /WindowManagerImpl.java 1.14


Comment 3 Peter Zavadsky 2003-12-04 12:54:21 UTC
There is one fix now:

core/../Main.java 1.184
Comment 4 Milos Kleint 2004-09-29 14:39:36 UTC
done, awt thread assertions are inplace.