Bug 23877 - call to Toolkit.getDefaultToolkit() causes application to hang
Summary: call to Toolkit.getDefaultToolkit() causes application to hang
Status: RESOLVED DUPLICATE of bug 16203
Alias: None
Product: classpath
Classification: Unclassified
Component: awt (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-14 09:20 UTC by Roman Kennke
Modified: 2005-09-14 13:53 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Kennke 2005-09-14 09:20:46 UTC
This testprogram hangs infinitly although it certainly should not:

class test
{
  public static final void main (String args[]) {
    java.awt.Toolkit.getDefaultToolkit();

  }
}

This can wide consequences like applications that hang when they load a font or
similar. After what I have found the problem is that in GtkToolkit.java line 132
the GTK main thread is started, which is not a daemon thread.

/Roman
Comment 1 Thomas Fitzsimmons 2005-09-14 13:53:16 UTC
This is the shutdown condition which broke slightly when we changed back to the
two-threaded model.  I'm calling this a duplicate of
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16203 which I've reopened.


*** This bug has been marked as a duplicate of 16203 ***