[jdk25u-dev] RFR: 8371365: Update javax/swing/JFileChooser/bug4759934.java to use Util.findComponent()
duke
duke at openjdk.org
Wed Feb 11 15:30:09 UTC 2026
On Thu, 5 Feb 2026 17:42:53 GMT, Roland Mesde <duke at openjdk.org> wrote:
> Backporting JDK-8371365: Update javax/swing/JFileChooser/bug4759934.java to use Util.findComponent().
>
> This PR updates bug4759934.java to use Util.findComponent() for finding and clicking JFileChooser's Cancel button instead of sending Esc key
> via Robot.
>
> For parity with Oracle JDK.
>
> Ran related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:
>
> make test TEST=test/jdk/javax/swing/JFileChooser/bug4759934.java
>
> Results attached:
>
> [windows-x64-specific-test.log](https://github.com/user-attachments/files/25113955/windows-x64-specific-test.log)
> [macos-aarch64-specific-test.log](https://github.com/user-attachments/files/25113956/macos-aarch64-specific-test.log)
> [linux-x64-specific-test.log](https://github.com/user-attachments/files/25113957/linux-x64-specific-test.log)
> [linux-aarch64-specific-test.log](https://github.com/user-attachments/files/25113958/linux-aarch64-specific-test.log)
@rm-gh-8
Your change (at version d71502735b45c5e449984be1536b3157c24a5f03) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk25u-dev/pull/241#issuecomment-3885176446
More information about the jdk-updates-dev
mailing list