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

Alexey Bakhtin abakhtin at openjdk.org
Thu Sep 25 16:46:40 UTC 2025


On Thu, 25 Sep 2025 07:45:29 GMT, Timofei Pushkin <tpushkin at openjdk.org> wrote:

>> 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

Marked as reviewed by abakhtin (Reviewer).

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

PR Review: https://git.openjdk.org/jdk11u-dev/pull/3082#pullrequestreview-3268654437


More information about the jdk-updates-dev mailing list