[jdk11u-dev] RFR: 8274893: Update java.desktop classes to use try-with-resources [v2]

Timofei Pushkin tpushkin at openjdk.org
Tue Sep 23 15:42:05 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)

Timofei Pushkin has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase.

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

Changes:
  - all: https://git.openjdk.org/jdk11u-dev/pull/3082/files
  - new: https://git.openjdk.org/jdk11u-dev/pull/3082/files/fecde385..fecde385

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3082&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3082&range=00-01

  Stats: 0 lines in 0 files changed: 0 ins; 0 del; 0 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