Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alarming SwingUtilities.invokeLater Problem in OS 9



On 15-Aug-05, at 3:19 PM, Doug Zwick wrote:

I've done some more experimentation, and it looks that all invokeLater
requests get serviced by AWT-Dispatch-Proxy while a nested event loop
is running a modal dialog. This suggests it is deliberate, and I have
the theory that this is so that logically distinct Runnables do not
inherit any environmental features from the code originally executing
on AWT-EventQueue-0, such as locked monitors. This would shift the
observed behaviour from being a "bug" to being a "feature", and thus
no longer alarming.

Interestingly, if it is a "feature", it seems to be unique to OS 9 (or
perhaps 1.1.x). The 1.3.1, 1.4.2 and 1.5.0 JVMs from Tiger all
process invokeLater requests on AWT-EventQueue-0.

I also found that on OS 9, whenever a nested event loop is
generated, a new AWT-Dispatch-Proxy thread is created, and
all Swing events are sent there. The SwingUtilities method
isEventDispatchThread reports TRUE for this thread. It is
just different enough (from 1.3+) that I tripped over it.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Alarming SwingUtilities.invokeLater Problem in OS 9 (From: Doug Zwick <email@hidden>)
 >Re: Alarming SwingUtilities.invokeLater Problem in OS 9 (From: Michael Hall <email@hidden>)
 >Re: Alarming SwingUtilities.invokeLater Problem in OS 9 (From: Doug Zwick <email@hidden>)
 >Re: Alarming SwingUtilities.invokeLater Problem in OS 9 (From: Michael Hall <email@hidden>)
 >Re: Alarming SwingUtilities.invokeLater Problem in OS 9 (From: Doug Zwick <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.