-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New TrapExit implementation for 0.13.1 triggers AWT initialization #990
Comments
ghost
assigned harrah
Nov 18, 2013
Related to #979. |
harrah
added a commit
that referenced
this issue
Nov 18, 2013
…one when awt is used. SecurityManager.checkAccess(ThreadGroup) is specified to be called for every Thread creation and every ThreadGroup creation and is therefore jvm-independent. This can be used to get all Threads associated with an application with good enough accuracy. An application will be marked as using AWT if it gets associated with the AWT event queue thread. To avoid unwanted side effects of accidental AWT initialization, TrapExit only tries to dispose frames when an application is so marked. Only one AWT application is supported due to a lack of a way to associate displayed windows with an application.
Fixed in f3c0509. |
harrah
added a commit
that referenced
this issue
Nov 19, 2013
…one when awt is used. SecurityManager.checkAccess(ThreadGroup) is specified to be called for every Thread creation and every ThreadGroup creation and is therefore jvm-independent. This can be used to get all Threads associated with an application with good enough accuracy. An application will be marked as using AWT if it gets associated with the AWT event queue thread. To avoid unwanted side effects of accidental AWT initialization, TrapExit only tries to dispose frames when an application is so marked. Only one AWT application is supported due to a lack of a way to associate displayed windows with an application.
harrah
added a commit
that referenced
this issue
Mar 21, 2014
…one when awt is used. SecurityManager.checkAccess(ThreadGroup) is specified to be called for every Thread creation and every ThreadGroup creation and is therefore jvm-independent. This can be used to get all Threads associated with an application with good enough accuracy. An application will be marked as using AWT if it gets associated with the AWT event queue thread. To avoid unwanted side effects of accidental AWT initialization, TrapExit only tries to dispose frames when an application is so marked. Only one AWT application is supported due to a lack of a way to associate displayed windows with an application.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The new TrapExit implementation calls into the AWT subsystem even when AWT isn't used by user code. It isn't clear how it was avoided in the previous implementation, but it is important to fix because it causes focus loss on OSX.
The text was updated successfully, but these errors were encountered: