RELEASE NOTES: JDK 17.0.3

Notes generated: Tue Dec 03 08:36:54 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.


security-libs/java.security

Issue Description
JDK-8274471

Support for RSASSA-PSS in OCSP Response


An OCSP response signed with the RSASSA-PSS algorithm is now supported.


FIXED ISSUES

client-libs/2d

Priority Bug Summary
P3 JDK-8270874 JFrame paint artifacts when dragged from standard monitor to HiDPI monitor
P4 JDK-8273704 DrawStringWithInfiniteXform.java failed : drawString with InfiniteXform transform takes long time
P4 JDK-8273972 Multi-core choke point in CMM engine (LCMSTransform.doTransform)

client-libs/demo

Priority Bug Summary
P3 JDK-8278604 SwingSet2 table demo does not have accessible description set for images

client-libs/java.awt

Priority Bug Summary
P3 JDK-8277299 STACK_OVERFLOW in Java_sun_awt_shell_Win32ShellFolder2_getIconBits
P4 JDK-8273387 remove some unreferenced gtk-related functions

client-libs/javax.accessibility

Priority Bug Summary
P3 JDK-8278526 [macos] Screen reader reads SwingSet2 JTable row selection as null, dimmed row for last column
P3 JDK-8277497 Last column cell in the JTable row is read as empty cell

client-libs/javax.swing

Priority Bug Summary
P3 JDK-8239502 [TEST_BUG] Test javax/swing/text/FlowView/6318524/bug6318524.java never fails
P4 JDK-8273634 [TEST_BUG] Improve javax/swing/text/ParagraphView/6364882/bug6364882.java
P4 JDK-8274465 Fix javax/swing/text/ParagraphView/6364882/bug6364882.java failures

core-libs

Priority Bug Summary
P4 JDK-8273351 bad tag in jdk.random module-info.java
P4 JDK-8272866 java.util.random package summary contains incorrect mixing function in table

core-libs/java.io

Priority Bug Summary
P4 JDK-8275536 Add test to check that File::lastModified returns same time stamp as Files.getLastModifiedTime
P4 JDK-8274750 java/io/File/GetXSpace.java failed: '/dev': 191488 != 190976
P4 JDK-8276623 JDK-8275650 accidentally pushed "out" file

core-libs/java.lang

Priority Bug Summary
P2 JDK-8279833 Loop optimization issue in String.encodeUTF8_UTF16
P3 JDK-8282219 jdk/java/lang/ProcessBuilder/Basic.java fails on AIX
P4 JDK-8272600 (test) Use native "sleep" in Basic.java

core-libs/java.math

Priority Bug Summary
P4 JDK-8272541 Incorrect overflow test in Toom-Cook branch of BigInteger multiplication

core-libs/java.net

Priority Bug Summary
P4 JDK-8273655 content-types.properties files are missing some common types
P4 JDK-8280414 Memory leak in DefaultProxySelector

core-libs/java.nio

Priority Bug Summary
P3 JDK-8274562 (fs) UserDefinedFileAttributeView doesn't correctly determine if supported when using OverlayFS
P4 JDK-8278172 java/nio/channels/FileChannel/BlockDeviceSize.java should only run on Linux
P4 JDK-8274171 java/nio/file/Files/probeContentType/Basic.java failed on "Content type" mismatches
P4 JDK-8278346 java/nio/file/Files/probeContentType/Basic.java fails on Linux SLES15 machine

core-libs/java.text

Priority Bug Summary
P4 JDK-8190748 java/text/Format/DateFormat/DateFormatTest.java and NonGregorianFormatTest fail intermittently

core-libs/java.util

Priority Bug Summary
P3 JDK-8273162 AbstractSplittableWithBrineGenerator does not create a random salt

core-libs/java.util.stream

Priority Bug Summary
P4 JDK-8247980 Exclusive execution of java/util/stream tests slows down tier1

core-libs/java.util:i18n

Priority Bug Summary
P3 JDK-8274658 ISO 4217 Amendment 170 Update

core-libs/javax.naming

Priority Bug Summary
P3 JDK-8272996 JNDI DNS provider fails to resolve SRV entries when IPV6 stack is enabled
P3 JDK-8277795 LDAP connection timeout not honoured under contention

core-svc

Priority Bug Summary
P4 JDK-8277992 Add fast jdk_svc subtests to jdk:tier3

core-svc/debugger

Priority Bug Summary
P4 JDK-8279669 test/jdk/com/sun/jdi/TestScaffold.java uses wrong condition

core-svc/tools

Priority Bug Summary
P4 JDK-8269616 serviceability/dcmd/framework/VMVersionTest.java fails with Address already in use error

hotspot/compiler

Priority Bug Summary
P2 JDK-8278871 [JVMCI] assert((uint)reason < 2* _trap_hist_limit) failed: oob
P3 JDK-8279225 [arm32] C1 longs comparison operation destroys argument registers
P3 JDK-8279300 [arm32] SIGILL when running GetObjectSizeIntrinsicsTest
P3 JDK-8275645 [JVMCI] avoid unaligned volatile reads on AArch64
P3 JDK-8279412 [JVMCI] failed speculations list must outlive any nmethod that refers to it
P3 JDK-8275874 [JVMCI] only support aligned reads in c2v_readFieldValue
P3 JDK-8277777 [Vector API] assert(r->is_XMMRegister()) failed: must be in x86_32.ad
P3 JDK-8271202 C1: assert(false) failed: live_in set of first block must be empty
P3 JDK-8275643 C2's unaryOp vector intrinsic does not properly handle LongVector.neg
P3 JDK-8275330 C2: assert(n->is_Root() || n->is_Region() || n->is_Phi() || n->is_MachMerge() || def_block->dominates(block)) failed: uses must be dominated by definitions
P3 JDK-8271056 C2: "assert(no_dead_loop) failed: dead loop detected" due to cmoving identity
P3 JDK-8275326 C2: assert(no_dead_loop) failed: dead loop detected
P3 JDK-8279076 C2: Bad AD file when matching SqrtF with UseSSE=0
P3 JDK-8273277 C2: Move conditional negation into rc_predicate
P3 JDK-8275610 C2: Object field load floats above its null check resulting in a segfault
P3 JDK-8262134 compiler/uncommontrap/TestDeoptOOM.java failed with "guarantee(false) failed: wrong number of expression stack elements during deopt"
P3 JDK-8277449 compiler/vectorapi/TestLongVectorNeg.java fails with release VMs
P3 JDK-8277447 Hotspot C1 compiler crashes on Kotlin suspend fun with loop
P3 JDK-8277846 Implement fast-path for ASCII-compatible CharsetEncoders on ppc64
P3 JDK-8279998 PPC64 debug builds fail with "untested: RangeCheckStub: predicate_failed_trap_id"
P3 JDK-8278758 runtime/BootstrapMethod/BSMCalledTwice.java fails with release VMs after JDK-8262134
P3 JDK-8280526 x86_32 Math.sqrt performance regression with -XX:UseSSE={0,1}
P4 JDK-8276314 [JVMCI] check alignment of call displacement during code installation
P4 JDK-8278016 Add compiler tests to tier{2,3}
P4 JDK-8278104 C1 should support the compiler directive 'BreakAtExecute'
P4 JDK-8274130 C2: MulNode::Ideal chained transformations may act on wrong nodes
P4 JDK-8269087 CheckSegmentedCodeCache test fails in an emulated-client VM
P4 JDK-8277441 CompileQueue::add fails with assert(_last->next() == __null) failed: not last
P4 JDK-8273895 compiler/ciReplay/TestVMNoCompLevel.java fails due to wrong data size with TieredStopAtLevel=2,3
P4 JDK-8277503 compiler/onSpinWait/TestOnSpinWaitAArch64DefaultFlags.java failed with "OnSpinWaitInst with the expected value 'isb' not found."
P4 JDK-8186670 Implement _onSpinWait() intrinsic for AArch64
P4 JDK-8251216 Implement MD5 intrinsics on AArch64
P4 JDK-8277180 Intrinsify recursive ObjectMonitor locking for C2 x64 and A64
P4 JDK-8275847 Scheduling fails with "too many D-U pinch points" on small method
P4 JDK-8277137 Set OnSpinWaitInst/OnSpinWaitInstCount defaults to "isb"/1 for Arm Neoverse N1

hotspot/gc

Priority Bug Summary
P2 JDK-8278627 Shenandoah: TestHeapDump test failed
P3 JDK-8278389 SuspendibleThreadSet::_suspend_all should be volatile/atomic
P3 JDK-8278824 Uneven work distribution when scanning heap roots in G1
P4 JDK-8273381 Assert in PtrQueueBufferAllocatorTest.stress_free_list_allocator_vm
P4 JDK-8278115 gc/stress/gclocker/TestGCLockerWithSerial.java has duplicate -Xmx
P4 JDK-8272327 Shenandoah: Avoid enqueuing duplicate string candidates
P4 JDK-8271721 Split gc/g1/TestMixedGCLiveThreshold into separate tests
P4 JDK-8269032 Stringdedup tests are failing if the ergonomically select GC does not support it

hotspot/jfr

Priority Bug Summary
P2 JDK-8277919 OldObjectSample event causing bloat in the class constant pool in JFR recording
P2 JDK-8278987 RunThese24H.java failed with EXCEPTION_ACCESS_VIOLATION in __write_sample_info__
P3 JDK-8279011 JFR: JfrChunkWriter incorrectly handles int64_t chunk size as size_t

hotspot/jvmti

Priority Bug Summary
P2 JDK-8278239 vmTestbase/nsk/jvmti/RedefineClasses/StressRedefine failed with EXCEPTION_ACCESS_VIOLATION at 0x000000000000000d
P3 JDK-8275800 Redefinition leaks MethodData::_extra_data_lock
P4 JDK-8276177 nsk/jvmti/RedefineClasses/StressRedefineWithoutBytecodeCorruption failed with "assert(def_ik->is_being_redefined()) failed: should be being redefined to get here"
P4 JDK-8253197 vmTestbase/nsk/jvmti/StopThread/stopthrd007/TestDescription.java fails with "ERROR: DebuggeeSleepingThread: ThreadDeath lost"

hotspot/runtime

Priority Bug Summary
P3 JDK-8280155 [PPC64, s390] frame size checks are not yet correct
P3 JDK-8279924 [PPC64, s390] implement frame::is_interpreted_frame_valid checks
P3 JDK-8271506 Add ResourceHashtable support for deleting selected entries
P3 JDK-8274944 AppCDS dump causes SEGV in VM thread while adjusting lambda proxy class info
P3 JDK-8273526 Extend the OSContainer API pids controller with pids.current
P3 JDK-8266490 Extend the OSContainer API to support the pids controller of cgroups
P3 JDK-8273967 gtest os.dll_address_to_function_and_library_name_vm fails on macOS12
P3 JDK-8263567 gtests don't terminate the VM safely
P3 JDK-8272398 Update DockerTestUtils.buildJdkDockerImage()
P3 JDK-8274753 ZGC: SEGV in MetaspaceShared::link_shared_classes
P3 JDK-8278020 ~13% variation in Renaissance-Scrabble
P4 JDK-8278381 [GCC 11] Address::make_raw() does not initialize rspec
P4 JDK-8269175 [macosx-aarch64] wrong CPU speed in hs_err file
P4 JDK-8281061 [s390] JFR runs into assertions while validating interpreter frames
P4 JDK-8278309 [windows] use of uninitialized OSThread::_state
P4 JDK-8274795 AArch64: avoid spilling and restoring r18 in macro assembler
P4 JDK-8278384 Bytecodes::result_type() for arraylength returns T_VOID instead of T_INT
P4 JDK-8278951 containers/cgroup/PlainRead.java fails on Ubuntu 21.10
P4 JDK-8274935 dumptime_table has stale entry
P4 JDK-8273438 Enable parallelism in vmTestbase/metaspace/stressHierarchy tests
P4 JDK-8273433 Enable parallelism in vmTestbase_nsk_sysdict tests
P4 JDK-8278241 Implement JVM SpinPause on linux-aarch64
P4 JDK-8274714 Incorrect verifier protected access error message
P4 JDK-8269037 jsig/Testjsig.java doesn't have to be restricted to linux only
P4 JDK-8281460 Let ObjectMonitor have its own NMT category
P4 JDK-8275687 runtime/CommandLine/PrintTouchedMethods test shouldn't catch RuntimeException
P4 JDK-8275608 runtime/Metaspace/elastic/TestMetaspaceAllocationMT2 too slow
P4 JDK-8278116 runtime/modules/LoadUnloadModuleStress.java has duplicate -Xmx
P4 JDK-8269523 runtime/Safepoint/TestAbortOnVMOperationTimeout.java failed when expecting 'VM operation took too long'
P4 JDK-8276662 Scalability bottleneck in SymbolTable::lookup_common()
P4 JDK-8272553 several hotspot runtime/CommandLine tests don't check exit code
P4 JDK-8273341 Update SipHash to version 1.0
P4 JDK-8279124 VM does not handle SIGQUIT during initialization
P4 JDK-8277383 VM.metaspace optionally show chunk freelist details
P4 JDK-8277342 vmTestbase/nsk/stress/strace/strace004.java fails with SIGSEGV in InstanceKlass::jni_id_for
P4 JDK-8277385 Zero: Enable CompactStrings support
P4 JDK-8275586 Zero: Simplify interpreter initialization

hotspot/svc

Priority Bug Summary
P4 JDK-8265150 AsyncGetCallTrace crashes on ResourceMark
P4 JDK-8280002 jmap -histo may leak stream

hotspot/test

Priority Bug Summary
P4 JDK-8274506 TestPids.java and TestPidsLimit.java fail with podman run as root
P4 JDK-8269849 vmTestbase/gc/gctests/PhantomReference/phantom002/TestDescription.java failed with "OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects"
P5 JDK-8269206 A small typo in comment in test/lib/sun/hotspot/WhiteBox.java

infrastructure

Priority Bug Summary
P4 JDK-8278822 Bump update version for OpenJDK: jdk-17.0.3

infrastructure/build

Priority Bug Summary
P3 JDK-8279702 [macosx] ignore xcodebuild warnings on M1
P3 JDK-8276654 element-list order is non deterministic
P3 JDK-8279379 GHA: Print tests that are in error
P4 JDK-8278163 --with-cacerts-src variable resolved after GenerateCacerts recipe setup
P4 JDK-8277069 [REDO] JDK-8276743 Make openjdk build Zip Archive generation "reproducible"
P4 JDK-8272167 AbsPathsInImage.java should skip *.dSYM directories
P4 JDK-8278080 Add --with-cacerts-src='user cacerts folder' to enable deterministic cacerts generation
P4 JDK-8244602 Add JTREG_REPEAT_COUNT to repeat execution of a test
P4 JDK-8276841 Add support for Visual Studio 2022
P4 JDK-8277762 Allow configuration of HOTSPOT_BUILD_USER
P4 JDK-8270117 Broken jtreg link in "Building the JDK" page
P4 JDK-8279505 Update documentation for RETRY_COUNT and REPEAT_COUNT
P4 JDK-8276057 Update JMH devkit to 1.33
P4 JDK-8279445 Update JMH devkit to 1.34

security-libs

Priority Bug Summary
P4 JDK-8279385 [test] Adjust sun/security/pkcs12/KeytoolOpensslInteropTest.java after 8278344
P4 JDK-8278344 sun/security/pkcs12/KeytoolOpensslInteropTest.java test fails because of different openssl output

security-libs/java.security

Priority Bug Summary
P3 JDK-8277488 Add expiry exception for Digicert (geotrustglobalca) expiring in May 2022
P3 JDK-8274471 Add support for RSASSA-PSS in OCSP Response
P3 JDK-8271199 Mutual TLS handshake fails signing client certificate with custom sensitive PKCS11 key

security-libs/javax.crypto:pkcs11

Priority Bug Summary
P3 JDK-8278099 two sun/security/pkcs11/Signature tests failed with AssertionError

security-libs/javax.net.ssl

Priority Bug Summary
P2 JDK-8274524 SSLSocket.close() hangs if it is called during the ssl handshake

security-libs/javax.xml.crypto

Priority Bug Summary
P3 JDK-8275082 Update XML Security for Java to 2.3.0

tools

Priority Bug Summary
P4 JDK-8276764 Enable deterministic file content ordering for Jar and Jmod

tools/jar

Priority Bug Summary
P4 JDK-8279453 Disable tools/jar/ReproducibleJar.java on 32-bit platforms
P4 JDK-8276766 Enable jar and jmod to produce deterministic timestamped content

tools/javac

Priority Bug Summary
P3 JDK-8225559 assertion error at TransTypes.visitApply

tools/jlink

Priority Bug Summary
P4 JDK-8278185 Custom JRE cannot find non-ASCII named module inside

tools/jshell

Priority Bug Summary
P3 JDK-8236505 Mark jdk/editpad/EditPadTest.java as @headful
P4 JDK-8177814 jdk/editpad is not in jdk TEST.groups
P4 JDK-8277328 jdk/jshell/CommandCompletionTest.java failures on Windows
P4 JDK-8273682 Upgrade Jline to 3.20.0

xml/javax.xml.parsers

Priority Bug Summary
P3 JDK-8280373 Update Xalan serializer / SystemIDResolver to align with JDK-8270492

xml/jaxp

Priority Bug Summary
P3 JDK-8284548 Invalid XPath expression causes StringIndexOutOfBoundsException
P4 JDK-8276141 XPathFactory set/getProperty method
P4 JDK-8282761 XPathFactoryImpl remove setProperty and getProperty methods