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 150787 - Many modules constructing components outside the AWT Event Thread
Summary: Many modules constructing components outside the AWT Event Thread
Status: RESOLVED WONTFIX
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@ide
URL:
Keywords: UMBRELLA
Depends on: 150785
Blocks:
  Show dependency tree
 
Reported: 2008-10-20 22:50 UTC by _ tboudreau
Modified: 2009-12-03 07:01 UTC (History)
1 user (show)

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 _ tboudreau 2008-10-20 22:50:42 UTC
Components should not be constructed on any thread but the AWT thread.  This is because one of the major sources of
deadlocks in NetBeans is the AWT tree lock.

I added some logging to java.awt.Component and found an enormous number of cases just during startup (possibly safer
then than later, but not strictly safe).

FolderInstance and SharedClassObject are a particularly common roots - probably they should be modified to log a stack
trace if the instance they create turns out to be a Component.  Also, it would be good to log stack traces if assertions
are enabled (bytecode patch java.awt.Component perhaps?)
Comment 1 _ tboudreau 2008-10-20 22:53:28 UTC
Also apropos: issue 150781 and issue 150779
Comment 2 Marian Mirilovic 2009-12-03 07:01:50 UTC
We are reporting particular issues against particular modules ...