RELEASE NOTES: JDK 24.0.2

Notes generated: Wed Mar 12 08:21:15 CET 2025

JEPs

None.

RELEASE NOTES

tools/jpackage

Issue Description
JDK-8345185

jpackage No Longer Includes Service Bindings by Default for Generated Run-Time Images


Starting with JDK 25, jpackage will no longer include service bindings for a run-time image that it creates. Prior to JDK 25, jpackage would include service bindings for run-time images. As a result, the generated run-time images produced by jpackage might not include the same set of modules as it did in prior versions.

The previous behavior can be achieved with jpackage of JDK 25 by adding the --bind-services jlink option to the default jlink options jpackage uses:

` jpackage [...] --jlink-options \ "--strip-native-commands --strip-debug --no-man-pages --no-header-files --bind-services" `


hotspot/compiler

Issue Description
JDK-8349637

Incorrect result of Integer.numberOfLeadingZeros


Integer.numberOfLeadingZeros may return an incorrect result on x86_64 with AVX2. The issue is caused by an incorrect JIT compiler optimization. As a workaround, the following command-line options can be used -XX:+UnlockDiagnosticVMOptions -XX:DisableIntrinsic=_numberOfLeadingZeros_i.


FIXED ISSUES

client-libs

Priority Bug Summary
P4 JDK-8294155 Exception thrown before awaitAndCheck hangs PassFailJFrame
P4 JDK-8350260 Improve HTML instruction formatting in PassFailJFrame
P4 JDK-8340784 Remove PassFailJFrame constructor with screenshots

client-libs/2d

Priority Bug Summary
P3 JDK-8347377 Add validation checks for ICC_Profile header fields
P3 JDK-8343224 print/Dialog/PaperSizeError.java fails with MediaSizeName is not A4: A4
P3 JDK-8348596 Update FreeType to 2.13.3
P3 JDK-8348110 Update LCMS to 2.17

client-libs/java.awt

Priority Bug Summary
P3 JDK-8280991 [XWayland] No displayChanged event after setDisplayMode call
P3 JDK-8348675 TrayIcon tests fail in Ubuntu 24.10 Wayland
P3 JDK-8348600 Update PipeWire to 1.3.81
P4 JDK-8349751 AIX build failure after upgrade pipewire to 1.3.81
P4 JDK-8334644 Automate javax/print/attribute/PageRangesException.java
P4 JDK-8348299 Update List/ItemEventTest/ItemEventTest.java

client-libs/javax.accessibility

Priority Bug Summary
P3 JDK-8345728 [Accessibility,macOS,Screen Magnifier]: JCheckbox unchecked state does not magnify but works for checked state
P3 JDK-8348936 [Accessibility,macOS,VoiceOver] VoiceOver doesn't announce untick on toggling the checkbox with "space" key on macOS

client-libs/javax.sound

Priority Bug Summary
P4 JDK-8347576 Error output in libjsound has non matching format strings

client-libs/javax.swing

Priority Bug Summary
P2 JDK-8347427 JTabbedPane/8134116/Bug8134116.java has no license header
P4 JDK-8346581 JRadioButton/ButtonGroupFocusTest.java fails in CI on Linux
P5 JDK-8342524 Use latch in AbstractButton/bug6298940.java instead of delay

core-libs

Priority Bug Summary
P4 JDK-8347038 [JMH] jdk.incubator.vector.SpiltReplicate fails NoClassDefFoundError
P4 JDK-8350682 [JMH] vector.IndexInRangeBenchmark failed with IndexOutOfBoundsException for size=1024
P4 JDK-8345676 [ubsan] ProcessImpl_md.c:561:40: runtime error: applying zero offset to null pointer on macOS aarch64

core-libs/java.io

Priority Bug Summary
P3 JDK-8347740 java/io/File/createTempFile/SpecialTempFile.java failing
P4 JDK-8345368 java/io/File/createTempFile/SpecialTempFile.java fails on Windows Server 2025

core-libs/java.lang

Priority Bug Summary
P4 JDK-8346880 [aix] java/lang/ProcessHandle/InfoTest.java still fails: "reported cputime less than expected"
P4 JDK-8349358 [JMH] Cannot access class jdk.internal.vm.ContinuationScope
P4 JDK-8349787 java/lang/Thread/virtual/ThreadPollOnYield.java#default passes unexpectedly without libVThreadPinner.so

core-libs/java.net

Priority Bug Summary
P3 JDK-8346705 SNI not sent with Java 22+ using java.net.http.HttpClient.Builder#sslParameters
P4 JDK-8347373 HTTP/2 flow control checks may count unprocessed data twice
P4 JDK-8348102 java/net/httpclient/HttpClientSNITest.java fails intermittently
P4 JDK-8281511 java/net/ipv6tests/UdpTest.java fails with checkTime failed
P4 JDK-8350546 Several java/net/InetAddress tests fails UnknownHostException

core-libs/java.nio

Priority Bug Summary
P3 JDK-8346671 java/nio/file/Files/probeContentType/Basic.java fails on Windows 2025
P4 JDK-8347171 (dc) java/nio/channels/DatagramChannel/InterruptibleOrNot.java fails with virtual thread factory
P4 JDK-8346972 Test java/nio/channels/FileChannel/LoopingTruncate.java fails sometimes with IOException: There is not enough space on the disk

core-libs/java.util:i18n

Priority Bug Summary
P4 JDK-8349200 [JMH] time.format.ZonedDateTimeFormatterBenchmark fails

core-svc/java.lang.management

Priority Bug Summary
P4 JDK-8347267 [macOS]: UnixOperatingSystem.c:67:40: runtime error: division by zero

globalization/translation

Priority Bug Summary
P4 JDK-8351223 Update localized resources in keytool and jarsigner

hotspot/compiler

Priority Bug Summary
P2 JDK-8349637 Integer.numberOfLeadingZeros outputs incorrectly in certain cases
P3 JDK-8347997 assert(false) failed: EA: missing memory path
P3 JDK-8347018 C2: Insertion of Assertion Predicates ignores the effects of PhaseIdealLoop::clone_up_backedge_goo()
P3 JDK-8347718 Unexpected NullPointerException in C2 compiled code due to ReduceAllocationMerges
P4 JDK-8346264 "Total compile time" counter should include time spent in failing/bailout compiles
P4 JDK-8342775 [Graal] java/util/concurrent/locks/Lock/OOMEInAQS.java fails OOME thrown from the UncaughtExceptionHandler
P4 JDK-8350483 AArch64: turn on signum intrinsics by default on Ampere CPUs
P4 JDK-8349753 Incorrect use of CodeBlob::is_buffer_blob() in few places
P4 JDK-8351033 RISC-V: TestFloat16ScalarOperations asserts with offset (4210) is too large to be patched in one beq/bge/bgeu/blt/bltu/bne instruction!
P4 JDK-8339889 Several compiler tests ignore vm flags and not marked as flagless
P4 JDK-8343978 Update the default value of CodeEntryAlignment for Ampere-1A and 1B

hotspot/gc

Priority Bug Summary
P4 JDK-8314840 3 gc/epsilon tests ignore external vm options
P4 JDK-8276995 Bug in jdk.jfr.event.gc.collection.TestSystemGC
P4 JDK-8349213 G1: Clearing bitmaps during collection set merging not claimed by region
P4 JDK-8347126 gc/stress/TestStressG1Uncommit.java gets OOM-killed
P4 JDK-8349002 GenShen: Deadlock during shutdown

hotspot/jfr

Priority Bug Summary
P4 JDK-8344453 Test jdk/jfr/event/oldobject/TestSanityDefault.java timed out

hotspot/runtime

Priority Bug Summary
P3 JDK-8345569 [ubsan] adjustments to filemap.cpp and virtualspace.cpp for macOS aarch64
P3 JDK-8350201 Out of bounds access on Linux aarch64 in os::print_register_info
P4 JDK-8349623 [ASAN] Gtest os_linux.glibc_mallinfo_wrapper_vm fails
P4 JDK-8347268 [ubsan] logOutput.cpp:357:21: runtime error: applying non-zero offset 1 to null pointer
P4 JDK-8346881 [ubsan] logSelection.cpp:154:24 / logSelectionList.cpp:72:94 : runtime error: applying non-zero offset 1 to null pointer
P4 JDK-8348323 Corrupted timezone string in JVM crash log
P4 JDK-8338303 Linux ppc64le with toolchain clang - detection failure in early JVM startup
P4 JDK-8350499 Minimal build fails with slowdebug builds
P4 JDK-8346832 runtime/CompressedOops/CompressedCPUSpecificClassSpaceReservation.java fails on RISC-V
P4 JDK-8350103 Test containers/systemd/SystemdMemoryAwarenessTest.java fails on Linux ppc64le SLES15 SP6

hotspot/svc-agent

Priority Bug Summary
P4 JDK-8349039 Adjust exception No type named in database

hotspot/test

Priority Bug Summary
P4 JDK-8322983 Virtual Threads: exclude 2 tests

infrastructure/build

Priority Bug Summary
P4 JDK-8350137 After JDK-8348975, Linux builds contain man pages for windows only tools
P4 JDK-8345590 AIX 'make all' fails after JDK-8339480
P4 JDK-8349375 Cleanup AIX special file build settings
P4 JDK-8348582 Set -fstack-protector when building with clang
P4 JDK-8349150 Support precompiled headers on AIX
P4 JDK-8350202 Tune for Power10 CPUs on Linux ppc64le

infrastructure/other

Priority Bug Summary
P4 JDK-8349370 Bump version numbers for 24.0.2

performance/libraries

Priority Bug Summary
P4 JDK-8349943 [JMH] Use jvmArgs consistently

security-libs/java.security

Priority Bug Summary
P4 JDK-8344316 security/auth/callback/TextCallbackHandler/Password.java make runnable with JTReg and add the UI

tools/javac

Priority Bug Summary
P4 JDK-8343882 BasicAnnoTests doesn't handle multiple annotations at the same position

tools/jlink

Priority Bug Summary
P4 JDK-8347302 Mark test tools/jimage/JImageToolTest.java as flagless

tools/jpackage

Priority Bug Summary
P3 JDK-8345185 Update jpackage to not include service bindings by default

tools/jshell

Priority Bug Summary
P4 JDK-8347629 Test FailOverDirectExecutionControlTest.java fails with -Xcomp

xml

Priority Bug Summary
P4 JDK-8344925 translet-name ignored when package-name is also set