[jdk17u-dev] Integrated: 8274893: Update java.desktop classes to use try-with-resources
Goetz Lindenmaier
goetz at openjdk.org
Sat Feb 22 15:13:54 UTC 2025
On Thu, 20 Feb 2025 10:16:01 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:
> I backport this for parity with 17.0.15-oracle.
> I hesitated a while to backport this Enhancements, but I think it's better to
> go along with Oracle here, too. Especially as it's an almost clean backport.
>
> Copyright:
> src/java.desktop/share/classes/com/sun/media/sound/AudioFileSoundbankReader.java
> src/java.desktop/share/classes/com/sun/media/sound/JARSoundbankReader.java
>
> src/java.desktop/share/classes/javax/imageio/ImageIO.java
> The try-finally statement catches an exception in 17, which is not
> present in the original change.
> This is becasue "(8272998)[https://bugs.openjdk.org/browse/JDK-8272998]: ImageIO.read() throws incorrect exception type" was
> already backported. Trivial resolve.
This pull request has now been integrated.
Changeset: 15730c0b
Author: Goetz Lindenmaier <goetz at openjdk.org>
URL: https://git.openjdk.org/jdk17u-dev/commit/15730c0bf2d9ee79ee9b023b33c739ee84669fde
Stats: 225 lines in 24 files changed: 27 ins; 98 del; 100 mod
8274893: Update java.desktop classes to use try-with-resources
Backport-of: 70c6df6be431fe11c5441986ed04040f9ec3b750
-------------
PR: https://git.openjdk.org/jdk17u-dev/pull/3283
More information about the jdk-updates-dev
mailing list