java

JDK 25.0.4 Release Notes

Java™ SE Development Kit 25, Update 25.0.4 (JDK 25.0.4)

Release date: July 21, 2026

The full version string for this update release is 25.0.4+7 (where "+" means "build"). The version number is 25.0.4. This JDK conforms to version 25 of the Java SE Specification (JSR 400 2025-09-16).

 

IANA TZ Data 2026b

JDK 25.0.4 contains IANA time zone data 2026b which contains the following changes:

  • British Columbia last daylight saving time change was 2026-03-08 spring forward.

For more information, refer to Timezone Data Versions in the JRE Software.

 

Security Baselines

The security baselines for the Java Runtime Environment (JRE) at the time of the release of JDK 25.0.4 are specified in the following table:

JRE Family Version JRE Security Baseline (Full Version String)
2525.0.4+7
2121.0.12+7
1717.0.20+7
1111.0.32+7
81.8.0_501-b08

 

Keeping the JDK up to Date

Oracle recommends that the JDK is updated with each Critical Patch Update. In order to determine if a release is the latest, the Security Baseline page can be used to determine which is the latest version for each release family.

Critical patch updates, which contain security vulnerability fixes, are announced one year in advance on Critical Patch Updates, Security Alerts and Bulletins. It is not recommended that this JDK (version 25.0.4) be used after the next Critical Security Patch Update scheduled for August 18, 2026. Oracle is transitioning to more frequent security updates, see the recently published blog for more information.

Java Management Service, available to all users, can help you find vulnerable Java versions in your systems. Java SE Subscribers and customers running in Oracle Cloud can use Java Management Service to update Java Runtimes and to do further security reviews like identifying potentially vulnerable third party libraries used by your Java programs. Existing Java Management Service user click here to log in to your dashboard. The Java Management Service Documentation provides a list of features available to everyone and those available only to customers. Learn more about using Java Management Service to monitor and secure your Java Installations.

 

New Features

security-libs/java.security
 Add Support for the Latest ML-KEM and ML-DSA Private Key Encodings (JDK-8347938)

The JDK now encodes ML-KEM and ML-DSA private keys in PKCS #8 format using the DER-encoded ASN.1 CHOICE formats defined in Section 6, "Private Key Format" of RFC 9935 and Section 6, "Private Key Format" of RFC 9881. Two new security properties, jdk.mlkem.pkcs8.encoding and jdk.mldsa.pkcs8.encoding, control the encoding used when generating new keys with a KeyPairGenerator or when translating keys with a KeyFactory. Valid values are seed, expandedKey, and both (case-insensitive). If a system property of the same name is also specified, it supersedes the security property value. All three formats are supported when decoding previously encoded private keys with a KeyFactory.

When these algorithms were introduced in JDK 24, the encoding format was equivalent to the expandedKey value. This release changes the default value to seed. As a result, ML-KEM and ML-DSA private keys generated by this JDK release will not be accepted by older releases by default, although keys generated by older releases are still readable by this release. To enable older JDK releases to accept ML-KEM and ML-DSA private keys generated by this JDK release, set the jdk.mlkem.pkcs8.encoding or jdk.mldsa.pkcs8.encoding property (whichever property is relevant to your use case) to expandedKey, and use KeyFactory.translateKey to convert the key to the older format.

 

Other Notes

security-libs/java.security
 Added WISeKey Global GB and GC Root CA Certificates (JDK-8372351)

The following root certificates have been added to the cacerts truststore:

+ WISeKey

  + wisekeyglobalrootgbca
    DN: CN=OISTE WISeKey Global Root GB CA, OU=OISTE Foundation Endorsed, O=WISeKey, C=CH

+ WISeKey
  + wisekeyglobalrootgcca
    DN: CN=OISTE WISeKey Global Root GC CA, OU=OISTE Foundation Endorsed, O=WISeKey, C=CH

security-libs/javax.net.ssl
 Include Client's Host and Port in DTLS Cookie (JDK-8373275 (not public))

The DTLS implementation in the SunJSSE security provider has been enhanced to generate HelloVerifyRequest cookies as recommended by RFC 6347. To use this feature, applications must create the SSLEngine with the SSLContext.createSSLEngine(String peerHost, int peerPort) API.

core-svc/java.lang.management
 New Management Interface for AOT Cache Creation (JDK-8369736)

A new management interface, jdk.management.HotSpotAOTCacheMXBean, has been added to the jdk.management module to provide the operation endRecording(). This operation ends the AOT recording and creates the AOT cache and/or configuration file. As with any MXBean, the operation can be invoked either from within the application or from an external tool such as jconsole.

hotspot/jfr
 JFR Event jdk.OldObjectSample Disabled for Generational ZGC (JDK-8382740)

The JFR event jdk.OldObjectSample is disabled when using generational ZGC.

The combination results in unacceptable performance overhead because the implementation relies on weak handles that, in generational ZGC, are processed only in the old generation.

hotspot/svc
 New jcmd Diagnostic Command to End an In-Progress AOT Training (JDK-8370203)

A new jcmd diagnostic command, AOT.end_recording, has been introduced to end an in-progress ahead-of-time (AOT) training and record the results in the file or files specified by -XX:AOTConfiguration or -XX:AOTCacheOutput.

Note that the JVM must be started in AOT training mode using command-line options such as -XX:AOTMode=record or -XX:AOTCacheOutput=<file>. The results of the AOT training can be an AOT configuration file, an AOT cache file, or both. For more information about AOT training, see JEP 483: Ahead-of-Time Class Loading & Linking and JEP 514: Ahead-of-Time Command-Line Ergonomics.

security-libs/java.security
 Limiting the Size of Certificate Revocation List (CRL) Downloads (JDK-8381796 (not public))

A new system and security property, com.sun.security.crl.maxSize, has been added to limit the maximum length of a CRL that is downloaded through URIs in the CRL Distribution Points certificate extension during path validation. The value of these properties is the size in bytes of the DER-encoded CRL. For protocols that can return multivalue responses, such as LDAP, the size threshold is the sum of all CRLs downloaded from a single search query. CRLs that exceed this length will not be processed during certificate path validation. This size limit does not apply to CRLs that are imported through non-network-based means. A negative value disables this size limitation. A non-numeric value will be ignored, and the default size will be used instead. The default size limit is 20 MiB. For cases where both the security and system properties are set, the system property takes precedence. Enabling certificate path logging by setting java.security.debug=certpath will output the current size limit and note any discarded CRLs.

 

Fixes

This release also contains fixes for security vulnerabilities described in the Oracle Critical Patch Update.

Issues fixed in 25.0.4:
# JBS Component/Subcomponent Summary
1JDK-8369561client-libs/2dsun/java2d/OpenGL/DrawBitmaskImage.java#id0: Incorrect color for first pixel (actual=ff000000)
2JDK-8378201client-libs/2d[OGL] glXMakeContextCurrent() drops the buffers of the unbound drawable
3JDK-8378417client-libs/2dPrinting All pages results in NPE for 1.1 PrintJob
4JDK-8375057client-libs/2dUpdate HarfBuzz to 12.3.2
5JDK-8297191client-libs/2d[macos] Printing a page range with starting page > 1 results in missing pages
6JDK-8376233client-libs/java.awtClean up code in Desktop native peer
7JDK-8378727client-libs/java.awt[macOS] Missing dispatch_release for semaphores in CDesktopPeer
8JDK-8379256client-libs/java.awtUpdate GIFlib to 6.1.1
9JDK-8380959client-libs/java.awtUpdate Libpng to 1.6.56
10JDK-8380078client-libs/java.awtUpdate GIFlib to 6.1.2
11JDK-8382047client-libs/java.awtUpdate Libpng to 1.6.57
12JDK-8377526client-libs/java.awtUpdate Libpng to 1.6.55
13JDK-8286258client-libs/javax.accessibility[Accessibility,macOS,VoiceOver] VoiceOver reads the spinner value wrong and sometime partially
14JDK-8374506client-libs/javax.swingIncorrect positioning of arrow icon in parent JMenu in Windows L&F
15JDK-8365379client-libs/javax.swingSU3.applyInsets may produce wrong results
16JDK-8377727client-libs/javax.swingGhost caret and focus appear in non‑editable text fields
17JDK-8365625client-libs/javax.swingCan't change accelerator colors in Windows L&F
18JDK-8376031core-libs/java.netHttpsURLConnection.getServerCertificates() throws "java.lang.IllegalStateException: connection not yet open" for the HEAD method
19JDK-8369050core-libs/java.textDecimalFormat Rounding Errors for Fractional Ties Near Zero
20JDK-8365065core-libs/java.util.concurrentCancelled ForkJoinPool tasks no longer throw CancellationException
21JDK-8371294core-libs/java.util.jarJAR File Specification page typography issue
22JDK-8374644core-libs/java.util.jarRegression in GZIPInputStream performance after JDK-7036144
23JDK-8378631core-libs/java.util.jarUpdate Zlib Data Compression Library to Version 1.3.2
24JDK-8362428core-libs/java.util:i18nUpdate IANA Language Subtag Registry to Version 2025-08-25
25JDK-8384043core-libs/java.util:i18n[REDO] Incorrect handling of Hawaii_Aleutian metazone
26JDK-8382020core-libs/java.util:i18nTime Zone Abbreviation Not Localized for Non-English Locales
27JDK-8371864hotspot/compilerGaloisCounterMode.implGCMCrypt0 AVX512/AVX2 intrinsics stubs cause AES-GCM encryption failure for certain payload sizes
28JDK-8376104hotspot/compilerC2 crashes in PhiNode::Ideal(PhaseGVN*, bool) accessing NULL pointer
29JDK-8373894hotspot/gcG1: Count evacuation-failed garbage collections in gc cpu usage
30JDK-8382242hotspot/jfrJFR: Metadata reconstruction invalidates ConstantMap for java.lang.String
31JDK-8371320hotspot/runtimeruntime/ErrorHandling/PrintVMInfoAtExitTest.java fails with unexpected amount for Java Heap reserved memory
32JDK-8380474hotspot/runtimeCrash SEGV in ThreadIdTable::lazy_initialize after JDK-8323792
33JDK-8377932hotspot/runtimeAOT cache is not rejected when JAR file has changed
34JDK-8357086hotspot/runtimeos::xxx functions returning memory size should return size_t
35JDK-8377512hotspot/runtimeAOT cache creation fails with invalid native pointer
36JDK-8380409hotspot/runtimeJVM crashes when -XX:AOTMode=create uses app.aotconf generated with JVMTI agent
37JDK-8363986hotspot/runtimeHeap region in CDS archive is not at deterministic address
38JDK-8323792hotspot/svcThreadSnapshot::initialize can cause assert in Thread::check_for_dangling_thread_pointer (possibility of dangling Thread pointer)
39JDK-8365057hotspot/svcAdd support for java.util.concurrent lock information to Thread.dump_to_file
40JDK-8373690security-libs/java.securityUnexpected Keystore message using jdk.crypto.disabledAlgorithms
41JDK-8373928tools/launcher4 Dangling pointer defect groups in java.c