[jdk25u-dev] Integrated: 8371365: Update javax/swing/JFileChooser/bug4759934.java to use Util.findComponent()

Roland Mesde duke at openjdk.org
Thu Feb 12 12:09:56 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)

This pull request has now been integrated.

Changeset: 4b1502ea
Author:    Roland Mesde <mesde at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL:       https://git.openjdk.org/jdk25u-dev/commit/4b1502eab4a867ad0488ec54cf9b80a129674296
Stats:     14 lines in 1 file changed: 11 ins; 1 del; 2 mod

8371365: Update javax/swing/JFileChooser/bug4759934.java to use Util.findComponent()

Backport-of: 78db38f14044d434eabb61ff8293d62eff3c497c

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

PR: https://git.openjdk.org/jdk25u-dev/pull/241


More information about the jdk-updates-dev mailing list