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

Alexey Ivanov alexey.ivanov at oracle.com
Tue Mar 24 12:42:04 UTC 2020


Hi Sergey,

On 23/03/2020 09:32, Sergey Bylokhov wrote:
> 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.

Will the test leave open Finder windows if IOException is not thrown, 
i.e. in the case where the test fails?

> This change aligns behavior and always throws an exception.
>
> On linux these methods are not implemented and throw 
> UnsupportedOperationException.
-- 
Regards,
Alexey


More information about the awt-dev mailing list