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

Timofei Pushkin tpushkin at openjdk.org
Thu Sep 25 07:45:29 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. The pull request contains four additional commits since the last revision:

 - 8274893: Update java.desktop classes to use try-with-resources
   
   Backport-of: 70c6df6be431fe11c5441986ed04040f9ec3b750
 - Merge remote-tracking branch 'openjdk-jdk11/master' into 8274893-jdk11
 - 8274893: Update java.desktop classes to use try-with-resources
   
   Backport-of: 70c6df6be431fe11c5441986ed04040f9ec3b750
 - 8271456: Avoid looking up standard charsets in "java.desktop" module
   
   Reviewed-by: phh
   Backport-of: 6b55ef3b58ae405c46f440e06b5adb03cec3a500

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

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

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

  Stats: 18835 lines in 224 files changed: 10217 ins; 3002 del; 5616 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