<AWT Dev> [11] Review Request: 8203224 java.awt.desktop.*Event classes could not be instantiated if Desktop feature is not supported
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Fri May 25 04:48:30 UTC 2018
Hello.
Please review the fix for jdk11.
Bug: https://bugs.openjdk.java.net/browse/JDK-8203224
Webrev: http://cr.openjdk.java.net/~serb/8203224/webrev.00
All events in the "java.awt.desktop" package use the instance of Desktop
as a source of the event:
http://cr.openjdk.java.net/~serb/8203224/webrev.00/src/java.desktop/share/classes/java/awt/desktop/AppEvent.java.sdiff.html
The problem is that "Desktop.getDesktop()" can throw an exceptions in
some cases. These exceptions are not specified in the event classes.
I'll create CSR after the technical review.
--
Best regards, Sergey.
More information about the awt-dev
mailing list