RELEASE NOTES: JDK 15.0.8

Notes generated: Sun Nov 03 23:19:57 CET 2024

JEPs

None.

RELEASE NOTES

core-libs/java.net

Issue Description
JDK-8273655

`java.net.FileNameMap.getContentTypeFor(fileName)` May Return a Different MIME Type for Certain Filenames


The default, built-in filename map in the JDK has been updated to include additional filename to MIME type mappings. Along with the additions, existing mappings of .gz and .zip have also been updated. This can result in the default, built-in java.net.FileNameMap instance returning a different MIME type from the getContentTypeFor(String fileName) method than what it returned in previous JDK releases.

java.net.URLConnection.guessContentTypeFromName(String fname), which may use this default, built-in FileNameMap instance, thus may return a different value than previously.


core-libs/java.io

Issue Description
JDK-8285445

New System Property to Disable Windows Alternate Data Stream Support in java.io.File


The Windows implementation of java.io.File allows access to NTFS Alternate Data Streams (ADS) by default. Such streams have a structure like “filename:streamname”. A system property jdk.io.File.enableADS has been added to control this behavior. To disable ADS support in java.io.File, the system property jdk.io.File.enableADS should be set to false (case ignored). Stricter path checking however prevents the use of special devices such as NUL:


core-libs/java.util.jar

Issue Description
JDK-8193682

Default JDK Compressor Will Be Closed when IOException Is Encountered


DeflaterOutputStream.close() and GZIPOutputStream.finish() methods have been modified to close out the associated default JDK compressor before propagating a Throwable up the stack. ZIPOutputStream.closeEntry() method has been modified to close out the associated default JDK compressor before propagating an IOException, not of type ZipException, up the stack.


FIXED ISSUES

client-libs/2d

Priority Bug Summary
P3 JDK-8285686 Update FreeType to 2.12.0

client-libs/java.awt

Priority Bug Summary
P3 JDK-8274751 Drag And Drop hangs on Windows
P4 JDK-8225122 Test AncestorResized.java fails when Windows desktop is scaled.

client-libs/javax.imageio

Priority Bug Summary
P3 JDK-8274735 javax.imageio.IIOException: Unsupported Image Type while processing a valid JPEG image

client-libs/javax.swing

Priority Bug Summary
P4 JDK-8172065 javax/swing/JTree/4908142/bug4908142.java The selected index should be "aad"

core-libs

Priority Bug Summary
P4 JDK-8250863 Build error with GCC 10 in NetworkInterface.c and k_standard.c

core-libs/java.io

Priority Bug Summary
P3 JDK-8285445 cannot open file "NUL:"
P4 JDK-8285523 Improve test java/io/FileOutputStream/OpenNUL.java

core-libs/java.lang

Priority Bug Summary
P3 JDK-8275703 System.loadLibrary fails on Big Sur for libraries hidden from filesystem

core-libs/java.net

Priority Bug Summary
P4 JDK-8273655 content-types.properties files are missing some common types

core-libs/java.nio

Priority Bug Summary
P4 JDK-8273935 (zipfs) Files.getFileAttributeView() throws UOE instead of returning null when view not supported

core-libs/java.text

Priority Bug Summary
P3 JDK-8282929 Localized monetary symbols are not reflected in `toLocalizedPattern` return value

core-libs/java.time

Priority Bug Summary
P3 JDK-8283350 (tz) Update Timezone Data to 2022a

core-libs/java.util.jar

Priority Bug Summary
P4 JDK-8278794 Infinite loop in DeflaterOutputStream.finish()
P4 JDK-8193682 Infinite loop in ZipOutputStream.close()
P4 JDK-8277087 ZipException: zip END header not found at ZipFile#Source.findEND

core-libs/java.util:i18n

Priority Bug Summary
P4 JDK-8258795 Update IANA Language Subtag Registry to Version 2021-05-11

hotspot/compiler

Priority Bug Summary
P2 JDK-8272574 C2: assert(false) failed: Bad graph detected in build_loop_late
P3 JDK-8270886 Crash in PhaseIdealLoop::verify_strip_mined_scheduling
P3 JDK-8282231 x86-32: runtime call to SharedRuntime::ldiv corrupts registers

hotspot/runtime

Priority Bug Summary
P3 JDK-8281275 Upgrading from 8 to 11 no longer accepts '/' as filepath separator in gc paths
P3 JDK-8258077 Using -Xcheck:jni can lead to a double-free after JDK-8193234
P4 JDK-8257794 Zero: assert(istate->_stack_limit == istate->_thread->last_Java_sp() + 1) failed: wrong on Linux/x86_32

hotspot/svc-agent

Priority Bug Summary
P4 JDK-8258471 "search codecache" clhsdb command does not work

hotspot/test

Priority Bug Summary
P4 JDK-8252401 Introduce Utils.TEST_NATIVE_PATH

infrastructure

Priority Bug Summary
P4 JDK-8283443 Bump update version for OpenJDK: jdk-15.0.8

infrastructure/build

Priority Bug Summary
P4 JDK-8244602 Add JTREG_REPEAT_COUNT to repeat execution of a test
P4 JDK-8279505 Update documentation for RETRY_COUNT and REPEAT_COUNT

security-libs

Priority Bug Summary
P3 JDK-8282538 PKCS11 tests fail on CentOS Stream 9

security-libs/java.security

Priority Bug Summary
P3 JDK-8278851 Correct signer logic for jars signed with multiple digest algorithms
P3 JDK-8287109 Distrust.java failed with CertificateExpiredException
P3 JDK-8255266 Update Public Suffix List to 3c213aa

tools/jshell

Priority Bug Summary
P4 JDK-8273682 Upgrade Jline to 3.20.0

xml/jaxp

Priority Bug Summary
P4 JDK-8285726 [11u, 17u] Unify fix for JDK-8284548 with version from head
P4 JDK-8285727 [11u, 17u] Unify fix for JDK-8284920 with version from head
P4 JDK-8282583 Update BCEL md to include the copyright notice
P4 JDK-8255035 Update Commons BCEL to Version 6.5.0
P4 JDK-8276657 XSLT compiler tries to define a class with empty name