[jdk25u-dev] RFR: 8371365: Update javax/swing/JFileChooser/bug4759934.java to use Util.findComponent()
Roland Mesde
duke at openjdk.org
Thu Feb 5 21:17:09 UTC 2026
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
-------------
Commit messages:
- Backport 78db38f14044d434eabb61ff8293d62eff3c497c
Changes: https://git.openjdk.org/jdk25u-dev/pull/241/files
Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=241&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8371365
Stats: 14 lines in 1 file changed: 11 ins; 1 del; 2 mod
Patch: https://git.openjdk.org/jdk25u-dev/pull/241.diff
Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/241/head:pull/241
PR: https://git.openjdk.org/jdk25u-dev/pull/241
More information about the jdk-updates-dev
mailing list