[jdk25u-dev] RFR: 8371364: Refactor javax/swing/JFileChooser/FileSizeCheck.java to use Util.findComponent()
Roland Mesde
duke at openjdk.org
Fri Feb 20 17:04:07 UTC 2026
Backporting JDK-8371364: Refactor javax/swing/JFileChooser/FileSizeCheck.java to use Util.findComponent().
This PR refactors FileSizeCheck.java to use the shared Util.findComponent() method instead of its own duplicate implementation.
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/FileSizeCheck.java
Results attached (should only run on linux):
[linux-x64-specific-test.log](https://github.com/user-attachments/files/25448122/linux-x64-specific-test.log)
[macos-aarch64-specific-test.log](https://github.com/user-attachments/files/25448123/macos-aarch64-specific-test.log)
[windows-x64-specific-test.log](https://github.com/user-attachments/files/25448124/windows-x64-specific-test.log)
[linux-aarch64-specific-test.log](https://github.com/user-attachments/files/25448125/linux-aarch64-specific-test.log)
-------------
Commit messages:
- Backport 9bc23608fb5719c3e977b5839efed5bc3f64a268
Changes: https://git.openjdk.org/jdk25u-dev/pull/295/files
Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=295&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8371364
Stats: 23 lines in 1 file changed: 2 ins; 17 del; 4 mod
Patch: https://git.openjdk.org/jdk25u-dev/pull/295.diff
Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/295/head:pull/295
PR: https://git.openjdk.org/jdk25u-dev/pull/295
More information about the jdk-updates-dev
mailing list