RELEASE NOTES: JDK 17.0.8

Notes generated: Wed Apr 03 06:37:02 CEST 2024

JEPs

None.

RELEASE NOTES

hotspot/compiler

Issue Description
JDK-8308884

GregorianCalender.computeTime() JVM Crash


A virtual machine crash was observed in JDK 11.0.19 and 17.0.7 when executing the GregorianCalender.computeTime() method (JDK-8307683). It was found that although the root cause of the crash is an old issue, a recent fix for a rare issue in the C2 compiler (JDK-8297951) made the crash much more likely. To mitigate this, the fix has been reverted in JDK 11.0.20 and 17.0.8 and will be reapplied once JDK-8307683 is resolved.


core-libs/java.nio.charsets

Issue Description
JDK-8301119

Support for GB18030-2022


China National Standard body (CESI) has recently published GB18030-2022 which is an updated version of the GB18030 standard and brings GB18030 in sync with Unicode version 11.0. The Charset implementation for this new standard has now replaced the prior 2000 standard. However, this new standard has some incompatible changes from the prior implementation. For those who need to use the old mappings, a new system property jdk.charset.GB18030 is introduced. By setting its value to 2000, the previous JDK releases' mappings for the GB18030 Charset are used which are based on the 2000 standard.


security-libs/java.security

Issue Description
JDK-8307134

Added 4 GTS Root CA Certificates


The following root certificates have been added to the cacerts truststore: ``` + Google Trust Services LLC + gtsrootcar1 DN: CN=GTS Root R1, O=Google Trust Services LLC, C=US

  • Google Trust Services LLC

  • gtsrootcar2 DN: CN=GTS Root R2, O=Google Trust Services LLC, C=US

  • Google Trust Services LLC

  • gtsrootecccar3 DN: CN=GTS Root R3, O=Google Trust Services LLC, C=US

  • Google Trust Services LLC

  • gtsrootecccar4 DN: CN=GTS Root R4, O=Google Trust Services LLC, C=US ```


JDK-8305975

Added TWCA Root CA Certificate


The following root certificate has been added to the cacerts truststore: ` + TWCA + twcaglobalrootca DN: CN=TWCA Global Root CA, OU=Root CA, O=TAIWAN-CA, C=TW `


JDK-8304760

Added Microsoft Corporation's 2 TLS Root CA Certificates


The following root certificates have been added to the cacerts truststore: ``` + Microsoft Corporation + microsoftecc2017 DN: CN=Microsoft ECC Root Certificate Authority 2017, O=Microsoft Corporation, C=US

  • Microsoft Corporation
  • microsoftrsa2017 DN: CN=Microsoft RSA Root Certificate Authority 2017, O=Microsoft Corporation, C=US ```

JDK-8303465

Enhance Contents (Trusted Certificate Entries) of macOS KeychainStore


The macOS KeychainStore implementation now exposes certificates with proper trust in the user domain, admin domain, or both. Before, only the user domain was considered. Furthermore, if there exists a "deny" entry for a particular purpose in a certificate's trust settings in either domain, the certificate will not be part of the macOS KeychainStore.


JDK-8254711

New JFR Event: `jdk.SecurityProviderService`


A new Java Flight Recorder (JFR) event has been added to record details of java.security.Provider.getService(String type, String algorithm) calls.

The new event name is jdk.SecurityProviderService and contains the following fields:

| Field name | Field Description | | ------------------------ | --------------------------- | |type | Type of Service | |algorithm |Algorithm Name | |provider | Security Provider |

This event is disabled by default and can be enabled via the JFR configuration files or via standard JFR options.


FIXED ISSUES

client-libs

Priority Bug Summary
P3 JDK-8298887 On the latest macOS+XCode the Robot API may report wrong colors
P4 JDK-8296084 javax/swing/JSpinner/4788637/bug4788637.java fails intermittently on a VM
P4 JDK-8270859 Post JEP 411 refactoring: client libs with maximum covering > 10K

client-libs/2d

Priority Bug Summary
P3 JDK-8304291 [AIX] Broken build after JDK-8301998
P3 JDK-8301998 Update HarfBuzz to 7.0.1
P3 JDK-8303482 Update LCMS to 2.15
P4 JDK-8304350 Font.getStringBounds calculates wrong width for TextAttribute.TRACKING other than 0.0
P4 JDK-8304295 harfbuzz build fails with GCC 7 after JDK-8301998

client-libs/java.awt

Priority Bug Summary
P2 JDK-8307799 Newly added java/awt/dnd/MozillaDnDTest.java has invalid jtreg `@requires` clause
P3 JDK-8302849 SurfaceManager might expose partially constructed object
P4 JDK-8307135 java/awt/dnd/NotReallySerializableTest/NotReallySerializableTest.java failed
P4 JDK-8271519 java/awt/event/SequencedEvent/MultipleContextsFunctionalTest.java failed with "Total [200] - Expected [400]"
P4 JDK-8304054 Linux: NullPointerException from FontConfiguration.getVersion in case no fonts are installed
P4 JDK-8306409 Open source AWT KeyBoardFocusManger, LightWeightComponent related tests
P4 JDK-8306489 Open source AWT List related tests
P4 JDK-8306652 Open source AWT MenuItem related tests
P4 JDK-8306850 Open source AWT Modal related tests
P4 JDK-8306133 Open source few AWT Drag & Drop related tests
P4 JDK-8306954 Open source five Focus related tests
P4 JDK-8306681 Open source more AWT DnD related tests
P4 JDK-8306466 Open source more AWT Drag & Drop related tests
P4 JDK-8306871 Open source more AWT Drag & Drop tests
P4 JDK-8306072 Open source several AWT MouseInfo related tests
P4 JDK-8306432 Open source several AWT Text Component related tests
P4 JDK-8306640 Open source several AWT TextArea related tests
P4 JDK-8306683 Open source several clipboard and color AWT tests
P4 JDK-8306752 Open source several container and component AWT tests
P4 JDK-8306753 Open source several container AWT tests
P4 JDK-8306941 Open source several datatransfer and dnd AWT tests
P4 JDK-8306943 Open source several dnd AWT tests
P4 JDK-8307128 Open source some drag and drop tests 4
P4 JDK-8296934 Write a test to verify whether Undecorated Frame can be iconified or not

client-libs/javax.imageio

Priority Bug Summary
P3 JDK-8302151 BMPImageReader throws an exception reading BMP images

client-libs/javax.swing

Priority Bug Summary
P2 JDK-8277407 javax/swing/plaf/synth/SynthButtonUI/6276188/bug6276188.java fails to compile after JDK-8276058
P3 JDK-8227257 javax/swing/JFileChooser/4847375/bug4847375.java fails with AssertionError
P3 JDK-8276058 Some swing test fails on specific CI macos system
P4 JDK-8277775 Fixup bugids in RemoveDropTargetCrashTest.java - add 4357905
P4 JDK-8285635 javax/swing/JRootPane/DefaultButtonTest.java failed with Default Button not pressed for L&F: com.sun.java.swing.plaf.motif.MotifLookAndFeel
P4 JDK-8306755 Open source few Swing JComponent and AbstractButton tests
P4 JDK-8307130 Open source few Swing JMenu tests
P4 JDK-8307381 Open Source JFrame, JIF related Swing Tests
P4 JDK-8306955 Open source several JComboBox jtreg tests
P4 JDK-8307133 Open source some JTable jtreg tests
P4 JDK-8307080 Open source some more JComboBox jtreg tests
P4 JDK-8306996 Open source Swing MenuItem related tests
P4 JDK-8297450 ScaledTextFieldBorderTest.java fails when run with -show parameter

core-libs

Priority Bug Summary
P3 JDK-8275735 [linux] Remove deprecated Metrics api (kernel memory limit)
P4 JDK-8301190 [vectorapi] The typeChar of LaneType is incorrect when default locale is tr
P4 JDK-8293887 AArch64 build failure with GCC 12 due to maybe-uninitialized warning in libfdlibm k_rem_pio2.c

core-libs/java.lang

Priority Bug Summary
P1 JDK-8286191 misc tests fail due to JDK-8285987
P3 JDK-8288589 Files.readString ignores encoding errors for UTF-16
P3 JDK-8287541 Files.writeString fails to throw IOException for charset "windows-1252"
P3 JDK-8286287 Reading file as UTF-16 causes Error which "shouldn't happen"
P4 JDK-8285987 executing shell scripts without #! fails on Alpine linux

core-libs/java.lang.invoke

Priority Bug Summary
P4 JDK-8292407 Improve Weak CAS VarHandle/Unsafe tests resilience under spurious failures

core-libs/java.lang.module

Priority Bug Summary
P4 JDK-8257856 Make ClassFileVersionsTest.java robust to JDK version updates

core-libs/java.lang:class_loading

Priority Bug Summary
P4 JDK-8302791 Add specific ClassLoader object to Proxy IllegalArgumentException message

core-libs/java.net

Priority Bug Summary
P3 JDK-8291226 Create Test Cases to cover scenarios for JDK-8278067
P3 JDK-8291637 HttpClient default keep alive timeout not followed if server sends invalid value
P3 JDK-8291638 Keep-Alive timeout of 0 should close connection immediately
P4 JDK-8238274 (sctp) JDK-7118373 is not fixed for SctpChannel

core-libs/java.nio

Priority Bug Summary
P4 JDK-8294717 (bf) DirectByteBuffer constructor will leak if allocating Deallocator or Cleaner fails with OOME
P4 JDK-8305993 Add handleSocketErrorWithMessage to extend nio Net.c exception message
P4 JDK-8307425 Socket input stream read burns CPU cycles with back-to-back poll(0) calls

core-libs/java.nio.charsets

Priority Bug Summary
P4 JDK-8301119 Support for GB18030-2022

core-libs/java.text

Priority Bug Summary
P3 JDK-8295564 Norwegian Nynorsk Locale is missing formatting

core-libs/java.time

Priority Bug Summary
P3 JDK-8305113 (tz) Update Timezone Data to 2023c
P3 JDK-8278434 timeouts in test java/time/test/java/time/format/TestZoneTextPrinterParser.java
P4 JDK-8308880 [17u] micro bench ZoneStrings missed in backport of 8278434

core-libs/java.util.concurrent

Priority Bug Summary
P3 JDK-8301216 ForkJoinPool invokeAll() ignores timeout
P3 JDK-8301637 ThreadLocalRandom.current().doubles().parallel() contention

core-libs/java.util:i18n

Priority Bug Summary
P3 JDK-8305400 ISO 4217 Amendment 175 Update
P3 JDK-8282227 Locale information for nb is not working properly
P3 JDK-8275721 Name of UTC timezone in a locale changes depending on previous code
P3 JDK-8303440 The "ZonedDateTime.parse" may not accept the "UTC+XX" zone id
P4 JDK-8274864 Remove Amman/Cairo hacks in ZoneInfoFile

core-svc

Priority Bug Summary
P4 JDK-8307347 serviceability/sa/ClhsdbDumpclass.java could leave files owned by root on macOS

core-svc/debugger

Priority Bug Summary
P4 JDK-8270434 JDI+UT: Unexpected event in JDI tests
P4 JDK-8273909 vmTestbase/nsk/jdi/Event/request/request001 can still fail with "ERROR: new event is not ThreadStartEvent"
P4 JDK-8244976 vmTestbase/nsk/jdi/Event/request/request001.java doesn' initialize eName

core-svc/tools

Priority Bug Summary
P3 JDK-8303937 Corrupted heap dumps due to missing retries for os::write()

docs

Priority Bug Summary
P4 JDK-8303130 Document required Accessibility permissions on macOS

hotspot/compiler

Priority Bug Summary
P3 JDK-8308884 [17u/11u] Backout JDK-8297951
P3 JDK-8299570 [JVMCI] Insufficient error handling when CodeBuffer is exhausted
P3 JDK-8292301 [REDO v2] C2 crash when allocating array of size too large
P3 JDK-8299179 ArrayFill with store on backedge needs to reduce length by 1
P3 JDK-8303564 C2: "Bad graph detected in build_loop_late" after a CMove is wrongly split thru phi
P3 JDK-8297730 C2: Arraycopy intrinsic throws incorrect exception
P3 JDK-8303511 C2: assert(get_ctrl(n) == cle_out) during unrolling
P3 JDK-8299959 C2: CmpU::Value must filter overflow computation against local sub computation
P3 JDK-8299259 C2: Div/Mod nodes without zero check could be split through iv phi of loop resulting in SIGFPE
P3 JDK-8301491 C2: java.lang.StringUTF16::indexOfChar intrinsic called with negative character argument
P3 JDK-8201516 DebugNonSafepoints generates incorrect information
P3 JDK-8300079 SIGSEGV in LibraryCallKit::inline_string_copy due to constant NULL src argument
P3 JDK-8305088 SIGSEGV in Method::is_method_handle_intrinsic
P3 JDK-8296412 Special case infinite loops with unmerged backedges in IdealLoopTree::check_safepts
P3 JDK-8302595 use-after-free related to GraphKit::clone_map
P3 JDK-8296318 use-def assert: special case undetected loops nested in infinite loops
P3 JDK-8303508 Vector.lane() gets wrong value on x86
P4 JDK-8302172 [JVMCI] HotSpotResolvedJavaMethodImpl.canBeInlined must respect ForceInline
P4 JDK-8303588 [JVMCI] make JVMCI source directories conform with standard layout
P4 JDK-8302508 Add timestamp to the output TraceCompilerThreads
P4 JDK-8305711 Arm: C2 always enters slowpath for monitorexit
P4 JDK-8296545 C2 Blackholes should allow load optimizations
P4 JDK-8290822 C2: assert in PhaseIdealLoop::do_unroll() is subject to undefined behavior
P4 JDK-8274243 Implement fast-path for ASCII-compatible CharsetEncoders on aarch64
P4 JDK-8299544 Improve performance of CRC32C intrinsics (non-AVX-512) for small inputs
P4 JDK-8252990 Intrinsify Unsafe.storeStoreFence
P4 JDK-8303069 Memory leak in CompilerOracle::parse_from_line
P4 JDK-8292713 Unsafe.allocateInstance should be intrinsified without UseUnalignedAccesses
P4 JDK-8302594 use-after-free in Node::destruct
P5 JDK-8305690 [X86] Do not emit two REX prefixes in Assembler::prefix
P5 JDK-8306768 CodeCache Analytics reports wrong threshold
P5 JDK-8301338 Identical branch conditions in CompileBroker::print_heapinfo
P5 JDK-8304683 Memory leak in WB_IsMethodCompatible
P5 JDK-8300823 UB: Compile::_phase_optimize_finished is initialized too late

hotspot/gc

Priority Bug Summary
P3 JDK-8305403 Shenandoah evacuation workers may deadlock
P4 JDK-8304880 [PPC64] VerifyOops code in C1 doesn't work with ZGC
P4 JDK-8307346 Add missing gc+phases logging for ObjectCount(AfterGC) JFR event collection code
P4 JDK-8293295 Add type check asserts to java_lang_ref_Reference accessors
P4 JDK-8307378 Allow collectors to provide specific values for GC notifications' actions
P4 JDK-8283566 G1: Improve G1BarrierSet::enqueue performance
P4 JDK-8278146 G1: Rework VM_G1Concurrent VMOp to clearly identify it as pause
P4 JDK-8270869 G1ServiceThread may not terminate
P4 JDK-8269821 Remove is-queue-active check in inner loop of write_ref_array_pre_work
P4 JDK-8261495 Shenandoah: reconsider update references memory ordering
P4 JDK-8293492 ShenandoahControlThread missing from hs-err log and thread dump

hotspot/jfr

Priority Bug Summary
P3 JDK-8268298 jdk/jfr/api/consumer/log/TestVerbosity.java fails: unexpected log message
P3 JDK-8283520 JFR: Memory leak in dcmd_arena
P4 JDK-8300042 Improve CPU related JFR events descriptions
P4 JDK-8294673 JFR: Add SecurityProviderService#threshold to TestActiveSettingEvent.java

hotspot/jvmti

Priority Bug Summary
P3 JDK-8245877 assert(_value != __null) failed: resolving NULL _value in JvmtiExport::post_compiled_method_load
P3 JDK-8307331 Correctly update line maps when class redefine rewrites bytecodes

hotspot/other

Priority Bug Summary
P4 JDK-8303949 gcc10 warning Linux ppc64le - note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5

hotspot/runtime

Priority Bug Summary
P3 JDK-8287007 [cgroups] Consistently use stringStream throughout parsing code
P3 JDK-8287854 Dangling reference in ClassVerifier::verify_class
P3 JDK-8301123 Enable Symbol refcounting underflow checks in PRODUCT
P3 JDK-8301661 Enhance os::pd_print_cpu_info on macOS and Windows
P3 JDK-8295974 jni_FatalError and Xcheck:jni warnings should print the native stack when there are no Java frames
P3 JDK-8306774 Make runtime/Monitor/GuaranteedAsyncDeflationIntervalTest.java more reliable
P3 JDK-8306825 Monitor deflation might be accidentally disabled by zero intervals
P3 JDK-8292206 TestCgroupMetrics.java fails as getMemoryUsage() is lower than expected
P4 JDK-8286346 3-parameter version of AllocateHeap should not ignore AllocFailType
P4 JDK-8294183 AArch64: Wrong macro check in SharedRuntime::generate_deopt_blob
P4 JDK-8284331 Add sanity check for signal handler modification warning.
P4 JDK-8303575 adjust Xen handling on Linux aarch64
P4 JDK-8301050 Detect Xen Virtualization on Linux aarch64
P4 JDK-8303861 Error handling step timeouts should never be blocked by OnError and others
P4 JDK-8305481 gtest is_first_C_frame failing on ARM
P4 JDK-8305994 Guarantee eventual async monitor deflation
P4 JDK-8297154 Improve safepoint cleanup logging
P4 JDK-8268288 jdk/jfr/api/consumer/streaming/TestOutOfProcessMigration.java fails with "Error: ShouldNotReachHere()"
P4 JDK-8286331 jni_GetStringUTFChars() uses wrong heap allocator
P4 JDK-8302491 NoClassDefFoundError omits the original cause of an error
P4 JDK-8227060 Optimize safepoint cleanup subtask order
P4 JDK-8275287 Relax memory ordering constraints on updating instance class and array class counters
P4 JDK-8282704 runtime/Thread/StopAtExit.java may leak memory
P4 JDK-8274615 Support relaxed atomic add for linux-aarch64
P4 JDK-8306883 Thread stacksize is reported with wrong units in os::create_thread logging

hotspot/svc

Priority Bug Summary
P4 JDK-8302320 AsyncGetCallTrace obtains too few frames in sanity test
P4 JDK-8303102 jcmd: ManagementAgent.status truncates the text longer than O_BUFLEN

hotspot/test

Priority Bug Summary
P4 JDK-8303822 gtestMain should give more helpful output

infrastructure

Priority Bug Summary
P4 JDK-8303433 Bump update version for OpenJDK: jdk-17.0.8

infrastructure/build

Priority Bug Summary
P2 JDK-8306543 GHA: MSVC installation is failing
P3 JDK-8303476 Add the runtime version in the release file of a JDK image
P3 JDK-8294281 Allow warnings to be disabled on a per-file basis
P3 JDK-8306658 GHA: MSVC installation could be optional since it might already be pre-installed
P3 JDK-8306664 GHA: Update MSVC version to latest stepping
P4 JDK-8304867 Explicitly disable dtrace for ppc builds
P4 JDK-8304134 jib bootstrapper fails to quote filename when checking download filetype
P4 JDK-8283062 Uninitialized warnings in libgtest with GCC 11.2
P4 JDK-8283057 Update GCC to version 11.2.0 for Oracle builds on Linux
P4 JDK-8289735 UTIL_LOOKUP_PROGS fails on pathes with space
P4 JDK-8306976 UTIL_REQUIRE_SPECIAL warning on grep
P5 JDK-8297000 [jib] Add more friendly warning for proxy issues
P5 JDK-8305721 add `make compile-commands` artifacts to .gitignore

infrastructure/release_eng

Priority Bug Summary
P4 JDK-8311467 [17u] Remove designator DEFAULT_PROMOTED_VERSION_PRE=ea for release 17.0.8

security-libs

Priority Bug Summary
P3 JDK-8303354 addCertificatesToKeystore in KeystoreImpl.m needs CFRelease call in early potential CHECK_NULL return
P4 JDK-8303576 addIdentitiesToKeystore in KeystoreImpl.m needs CFRelease call in early potential CHECK_NULL return

security-libs/java.security

Priority Bug Summary
P3 JDK-8304760 Add 2 Microsoft TLS roots
P3 JDK-8307134 Add GTS root CAs
P3 JDK-8305975 Add TWCA Global Root CA
P3 JDK-8293858 Change PKCS7 code to use default SecureRandom impl instead of SHA1PRNG
P3 JDK-8282201 Consider removal of expiry check in VerifyCACerts.java test
P3 JDK-8296343 CPVE thrown on missing content-length in OCSP response
P3 JDK-8303465 KeyStore of type KeychainStore, provider Apple does not show all trusted certificates
P3 JDK-8300939 sun/security/provider/certpath/OCSP/OCSPNoContentLength.java fails due to network errors
P3 JDK-8224768 Test ActalisCA.java fails
P4 JDK-8254711 Add java.security.Provider.getService JFR Event
P4 JDK-8297955 LDAP CertStore should use LdapName and not String for DNs

security-libs/javax.crypto

Priority Bug Summary
P4 JDK-8178806 Better exception logging in crypto code

security-libs/javax.crypto:pkcs11

Priority Bug Summary
P3 JDK-8294906 Memory leak in PKCS11 NSS TLS server
P4 JDK-8282077 PKCS11 provider C_sign() impl should handle CKR_BUFFER_TOO_SMALL error

security-libs/javax.xml.crypto

Priority Bug Summary
P4 JDK-8287246 DSAKeyValue should check for missing params instead of relying on KeyFactory provider

security-libs/org.ietf.jgss

Priority Bug Summary
P3 JDK-8303809 Dispose context in SPNEGO NegotiatorImpl

tools/javac

Priority Bug Summary
P3 JDK-8278834 Error "Cannot read field "sym" because "this.lvar[od]" is null" when compiling
P3 JDK-8275233 Incorrect line number reported in exception stack trace thrown from a lambda expression
P3 JDK-8304671 javac regression: Compilation with --release 8 fails on underscore in enum identifiers

tools/javadoc(tool)

Priority Bug Summary
P3 JDK-8268582 javadoc throws NPE with --ignore-source-errors option
P4 JDK-8248001 javadoc generates invalid HTML pages whose ftp:// links are broken

tools/jpackage

Priority Bug Summary
P3 JDK-8298488 [macos13] tools/jpackage tests failing with "Exit code: 137" on macOS
P4 JDK-8304063 tools/jpackage/share/AppLauncherEnvTest.java fails when checking LD_LIBRARY_PATH

tools/jshell

Priority Bug Summary
P3 JDK-8287897 Augment src/jdk.internal.le/share/legal/jline.md with information on 4th party dependencies
P3 JDK-8304498 JShell does not switch to raw mode when there is no /bin/test
P4 JDK-8308554 [17u] Fix commit of 8286191. vm.musl was not removed from ExternalEditorTest
P4 JDK-8286398 Address possibly lossy conversions in jdk.internal.le
P4 JDK-8292755 Non-default method in interface leads to a stack overflow in JShell

xml/jaxp

Priority Bug Summary
P4 JDK-8289509 Improve test coverage for XPath Axes: descendant, descendant-or-self, following, following-sibling
P4 JDK-8292990 Improve test coverage for XPath Axes: parent
P4 JDK-8289949 Improve test coverage for XPath: operators