<AWT Dev> <Awt Dev> [9] Review Request for 8130895: Test javax/swing/system/6799345/TestShutdown.java fails on Solaris11 Sparcv9
Semyon Sadetsky
semyon.sadetsky at oracle.com
Tue Jul 21 09:40:39 UTC 2015
Hello,
Please review fix for JDK9:
bug: https://bugs.openjdk.java.net/browse/JDK-8130895
webrev: http://cr.openjdk.java.net/~ssadetsky/8130895/webrev.00/
realSync() used in the test's TestRunnable class causes events come to
the XAWT event loop but there are no any windows created at the moment
and the system application context is not initialized. This results in
attempt to create the KeyboardFocusManager instance on the XAWT's thread
group during the XEvent dispatching. That in its turn causes NPE.
The solution: since KeyboardFocusManager should never be instantiated in
the toolkit event loop, the corresponding check was added.
--Semyon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20150721/85a09578/attachment.html>
More information about the awt-dev
mailing list