RELEASE NOTES: JDK 11.0.27

Notes generated: Fri Jan 17 05:18:11 CET 2025

JEPs

None.

RELEASE NOTES

tools/javac

Issue Description
JDK-8273914

Indy String Concat Changes Order of Operations


String concatenation has been changed to evaluate each argument and eagerly convert it to a string, in left-to-right order. This fixes a bug in the invokedynamic-based string concatentation strategies introduced in JEP 280.

For example, the following now prints "foofoobar", not "foobarfoobar":

` StringBuilder builder = new StringBuilder("foo"); System.err.println("" + builder + builder.append("bar")); `


core-libs/java.util.jar

Issue Description
JDK-8335912

New jar command option to not overwrite existing files


The jar tool's extract operation has been enhanced to allow the --keep-old-files or the -k options to be used to preventing overwriting existing files.

Example Usages:

jar xkf foo.jar

or

jar --extract --keep-old-files --file foo.jar

Either of these commands will extract the foo.jar, and if an entry with the same name already exist in the target directory, then the existing file will not be overwritten.


FIXED ISSUES

core-libs/java.util.jar

Priority Bug Summary
P5 JDK-8335912 Add an operation mode to the jar command when extracting to not overwriting existing files

hotspot/runtime

Priority Bug Summary
P4 JDK-8268364 jmethod clearing should be done during unloading

infrastructure/other

Priority Bug Summary
P4 JDK-8343474 [updates] Customize README.md to specifics of update project

infrastructure/release_eng

Priority Bug Summary
P4 JDK-8345509 Bump update version of OpenJDK: 11.0.27

tools/javac

Priority Bug Summary
P4 JDK-8273914 Indy string concat changes order of operations