<AWT Dev> RFR: 7131400 [macosx] Desktop.edit(a directory) should throw IOException

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Mon Mar 23 09:32:13 UTC 2020


Hello.
Please review the fix for jdk/client.

Bug: https://bugs.openjdk.java.net/browse/JDK-7131400
Fix: http://cr.openjdk.java.net/~serb/7131400/webrev.00

The java.awt.Desktop.edit()/print() methods behave differently
on macOS and Windows when the folder is passed as a parameter.

On Windows we throw IOException, and on macOS we open the folder using Finder.

This change aligns behavior and always throws an exception.

On linux these methods are not implemented and throw UnsupportedOperationException.

-- 
Best regards, Sergey.


More information about the awt-dev mailing list