[jdk11u-dev] RFR: 8274893: Update java.desktop classes to use try-with-resources
Timofei Pushkin
tpushkin at openjdk.org
Thu Aug 28 14:34:20 UTC 2025
Backport of [JDK-8274893](https://bugs.openjdk.org/browse/JDK-8274893) from JDK 17, for parity with Oracle 11.0.27.
The only conflict was trivial: in imports of `JEditorPane` which uses * imports in this release, so no change was needed.
Testing: GitHub CI, `jdk_imageio` test group locally (mac/arm64)
-------------
Depends on: https://git.openjdk.org/jdk11u-dev/pull/3081
Commit messages:
- 8274893: Update java.desktop classes to use try-with-resources
Changes: https://git.openjdk.org/jdk11u-dev/pull/3082/files
Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3082&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8274893
Stats: 224 lines in 24 files changed: 26 ins; 98 del; 100 mod
Patch: https://git.openjdk.org/jdk11u-dev/pull/3082.diff
Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/3082/head:pull/3082
PR: https://git.openjdk.org/jdk11u-dev/pull/3082
More information about the jdk-updates-dev
mailing list