<AWT Dev> [11] Review Request: 8203224 java.awt.desktop.*Event classes could not be instantiated if Desktop feature is not supported

Phil Race philip.race at oracle.com
Mon Jun 4 21:19:00 UTC 2018


+1.

-phil.

On 05/24/2018 09:48 PM, Sergey Bylokhov wrote:
> 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.
>



More information about the awt-dev mailing list