On Tue, 12 Mar 2024 12:34:57 GMT, Alexander Zvegintsev <[email protected]> 
wrote:

> The test is converted to main.
> Tested on Linux, Macos and Windows.

test/jdk/java/awt/FileDialog/SaveFileNameOverrideTest.java line 79:

> 77: 
> 78:             fd.setFile("input");
> 79:             fd.setDirectory(new File(dirPath).getAbsolutePath());

Originally it was just the `dirPath` (== `.`).
However, a recently opened directory is opened when we pass `.` to 
`setDirectory` on WIndows. 
To make the test consistent, the absolute path is used.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18231#discussion_r1521393330

Reply via email to