RELEASE NOTES FOR: 21.0.7 ==================================================================================================== Notes generated: Wed Jan 08 06:16:48 CET 2025 Hint: Prefix bug IDs with https://bugs.openjdk.org/browse/ to reach the relevant JIRA entry. JAVA ENHANCEMENT PROPOSALS (JEP): None. RELEASE NOTES: security-libs/javax.crypto:pkcs11: JDK-8293345: the legacy mechanism check in SunPKCS11 provider is enhanced with service type Native PKCS11 mechanisms which support decryption but not encryption or signature verification but not signing are considered legacy and are disabled by default. The legacy mechanism check in SunPKCS11 provider is enhanced with the service type. For example, prior to this fix, a mechanism supporting encryption, decryption, and verification but not signing, is considered legacy and can't be used at all. After this fix, the corresponding Cipher service using this mechanism is available since both encryption and decryption are supported. However, the corresponding Signature service is not since only verification is supported. To bypass the legacy mechanism check, set the PKCS11 provider configuration attribute "allowLegacy" to true (default value: false). Note that it is the caller's responsibility to make sure the legacy mechanism is not used for the unsupported functionality, e.g. use this mechanism to sign. ALL FIXED ISSUES, BY COMPONENT AND PRIORITY: client-libs: (P4) JDK-8339524: Clean up a few ExtendedRobot tests (P4) JDK-8343128: PassFailJFrame.java test result: Error. Bad action for script: build} client-libs/2d: (P4) JDK-8277240: java/awt/Graphics2D/ScaledTransform/ScaledTransform.java dialog does not get disposed (P4) JDK-8339883: Open source several AWT/2D related tests client-libs/java.awt: (P1) JDK-8340480: Bad copyright notices in changes from JDK-8339902 (P3) JDK-8335468: [XWayland] JavaFX hangs when calling java.awt.Robot.getPixelColor (P3) JDK-8332158: [XWayland] test/jdk/java/awt/Mouse/EnterExitEvents/ResizingFrameTest.java (P4) JDK-8328005: Convert java/awt/im/JTextFieldTest.java applet test to main (P4) JDK-8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main (P4) JDK-8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main (P4) JDK-8328719: Convert java/awt/print/PageFormat/SetOrient.html applet test to main (P4) JDK-8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main (P4) JDK-8329210: Delete Redundant Printer Dialog Modality Test (P4) JDK-8342541: Exclude List/KeyEventsTest/KeyEventsTest.java from running on macOS (P4) JDK-8339943: Frame not disposed in java/awt/dnd/DropActionChangeTest.java (P4) JDK-8337886: java/awt/Frame/MaximizeUndecoratedTest.java fails in OEL due to a slight color difference (P4) JDK-8340719: Open source AWT List tests (P4) JDK-8339902: Open source couple TextField related tests (P4) JDK-8328753: Open source few Undecorated Frame tests (P4) JDK-8333360: PrintNullString.java doesn't use float arguments client-libs/javax.swing: (P2) JDK-8316627: JViewport Test headless failure (P3) JDK-8328553: Get rid of JApplet in test/jdk/sanity/client/lib/SwingSet2/src/DemoModule.java (P4) JDK-8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main (P4) JDK-8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main (P4) JDK-8341978: Improve JButton/bug4490179.java (P4) JDK-8315825: Open some swing tests (P4) JDK-8315882: Open some swing tests 2 (P4) JDK-8316146: Open some swing tests 4 (P4) JDK-8316218: Open some swing tests 5 (P4) JDK-8316371: Open some swing tests 6 (P4) JDK-8315952: Open source several Swing JToolbar JTooltip JTree tests (P4) JDK-8315883: Open source several Swing JToolbar tests (P4) JDK-8316149: Open source several Swing JTree JViewport KeyboardManager tests (P4) JDK-8316056: Open source several Swing JTree tests (P4) JDK-8327857: Remove applet usage from JColorChooser tests Test4222508 (P4) JDK-8327859: Remove applet usage from JColorChooser tests Test4319113 (P4) JDK-8328121: Remove applet usage from JColorChooser tests Test4759306 (P4) JDK-8328130: Remove applet usage from JColorChooser tests Test4759934 (P4) JDK-8328227: Remove applet usage from JColorChooser tests Test4887836 (P4) JDK-8328380: Remove applet usage from JColorChooser tests Test6348456 (P4) JDK-8328403: Remove applet usage from JColorChooser tests Test6977726 (P4) JDK-8342602: Remove JButton/PressedButtonRightClickTest test (P4) JDK-8338668: Test javax/swing/JFileChooser/8080628/bug8080628.java doesn't test for GTK L&F core-libs: (P4) JDK-8336012: Fix usages of jtreg-reserved properties core-libs/java.lang: (P4) JDK-8339687: Rearrange reachabilityFence()s in jdk.test.lib.util.ForceGC core-libs/java.net: (P4) JDK-8342811: java/net/httpclient/PlainProxyConnectionTest.java failed: Unexpected connection count: 5 core-libs/java.nio: (P2) JDK-8342145: File libCreationTimeHelper.c compile fails on Alpine (P3) JDK-8341881: [REDO] java/nio/file/attribute/BasicFileAttributeView/CreationTime.java#tmp fails on alinux3 (P4) JDK-8338426: Test java/nio/channels/Selector/WakeupNow.java failed core-libs/java.time: (P4) JDK-8324672: Update jdk/java/time/tck/java/time/TCKInstant.java now() to be more robust core-libs/java.util.jar: (P5) JDK-8339154: Cleanups and JUnit conversion of test/jdk/java/util/zip/Available.java core-svc/debugger: (P4) JDK-8333391: Test com/sun/jdi/InterruptHangTest.java failed: Thread was never interrupted during sleep core-svc/javax.management: (P4) JDK-8334777: Test javax/management/remote/mandatory/notif/NotifReconnectDeadlockTest.java failed with NullPointerException hotspot/compiler: (P2) JDK-8337660: C2: basic blocks with only BoxLock nodes are wrongly treated as empty (P2) JDK-8340313: Crash due to invalid oop in nmethod after C1 patching (P3) JDK-8345296: AArch64: VM crashes with SIGILL when prctl is disallowed (P3) JDK-8338100: C2: assert(!n_loop->is_member(get_loop(lca))) failed: control must not be back in the loop (P3) JDK-8340824: C2: Memory for TypeInterfaces not reclaimed by hashcons() (P3) JDK-8328085: C2: Use after free in PhaseChaitin::Register_Allocate() (P4) JDK-8341194: [REDO] Implement C2 VectorizedHashCode on AArch64 (P4) JDK-8331993: Add counting leading/trailing zero tests for Integer (P4) JDK-8326421: Add jtreg test for large arrayCopy disjoint case. (P4) JDK-8333647: C2 SuperWord: some additional PopulateIndex tests (P4) JDK-8343205: CompileBroker::possibly_add_compiler_threads excessively polls available memory (P4) JDK-8316885: jcmd: Compiler.CodeHeap_Analytics cmd does not inform about missing aggregate (P4) JDK-8327390: JitTester: Implement temporary folder functionality (P4) JDK-8341862: PPC64: C1 unwind_handler fails to unlock synchronized methods with LM_MONITOR (P4) JDK-8341715: PPC64: ObjectMonitor::_owner should be reset unconditionally in nmethod unlocking (P4) JDK-8336692: Redo fix for JDK-8284620 hotspot/jfr: (P3) JDK-8337994: [REDO] Native memory leak when not recording any events (P4) JDK-8346108: [21u][BACKOUT] 8337994: [REDO] Native memory leak when not recording any events (P4) JDK-8320916: jdk/jfr/event/gc/stacktrace/TestParallelMarkSweepAllocationPendingStackTrace.java failed with "OutOfMemoryError: GC overhead limit exceeded" (P4) JDK-8340969: jdk/jfr/startupargs/TestStartDuration.java should be marked as flagless hotspot/runtime: (P2) JDK-8325937: runtime/handshake/HandshakeDirectTest.java causes "monitor end should be strictly below the frame pointer" assertion failure on AArch64 (P3) JDK-8346847: [s390x] minimal build failure (P3) JDK-8313905: Checked_cast assert in CDS compare_by_loader (P4) JDK-8343149: Cleanup os::print_tos_pc on AIX (P4) JDK-8343129: Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values (P4) JDK-8295159: DSO created with -ffast-math breaks Java floating-point arithmetic (P4) JDK-8343343: Misc crash dump improvements on more platforms after JDK-8294160 (P4) JDK-8317919: pthread_attr_init handle return value and destroy pthread_attr_t object (P4) JDK-8344646: The libjsig deprecation warning should go to stderr not stdout (P4) JDK-8321818: vmTestbase/nsk/stress/strace/strace015.java failed with 'Cannot read the array length because "" is null' hotspot/svc-agent: (P4) JDK-8341820: Check return value of hcreate_r (P4) JDK-8294316: SA core file support is broken on macosx-x64 starting with macOS 12.x infrastructure/build: (P4) JDK-8336498: [macos] [build]: install-file macro may run into permission denied error (P4) JDK-8341424: GHA: Collect hs_errs from build time failures (P4) JDK-8342704: GHA: Report truncation is broken after JDK-8341424 (P4) JDK-8342858: Make target mac-jdk-bundle fails on chmod command infrastructure/release_eng: (P4) JDK-8345370: Bump update version for OpenJDK: jdk-21.0.7 other-libs/other: (P4) JDK-8334490: Normalize string with locale invariant `toLowerCase()` security-libs/java.security: (P3) JDK-8345414: Google CAInterop test failures (P3) JDK-8337951: Test sun/security/validator/samedn.sh CertificateNotYetValidException: NotBefore validation (P4) JDK-8340116: test/jdk/sun/security/tools/jarsigner/PreserveRawManifestEntryAndDigest.java can fail due to regex security-libs/javax.crypto:pkcs11: (P3) JDK-8335288: SunPKCS11 initialization will call C_GetMechanismInfo on unsupported mechanisms (P3) JDK-8293345: SunPKCS11 provider checks on PKCS11 Mechanism are problematic (P3) JDK-8342270: Test sun/security/pkcs11/Provider/RequiredMechCheck.java needs write access to src tree (P4) JDK-8331959: Update PKCS#11 Cryptographic Token Interface to v3.1 security-libs/javax.net.ssl: (P4) JDK-8339261: Logs truncated in test javax/net/ssl/DTLS/DTLSRehandshakeTest.java tools/jpackage: (P3) JDK-8343100: Consolidate EmptyFolderTest and EmptyFolderPackageTest jpackage tests into single java file (P3) JDK-8343178: Test BasicTest.java javac compile fails cannot find symbol (P4) JDK-8342609: jpackage test helper function incorrectly removes a directory instead of its contents only (P4) JDK-8343314: Move common properties from jpackage jtreg test declarations to TEST.properties file (P4) JDK-8344326: Move jpackage tests from "jdk.jpackage.tests" package to the default package (P4) JDK-8343102: Remove `--compress` from jlink command lines from jpackage tests (P4) JDK-8343101: Rework BasicTest.testTemp test cases (P4) JDK-8333116: test/jdk/tools/jpackage/share/ServiceTest.java test fails (P4) JDK-8314909: tools/jpackage/windows/Win8282351Test.java fails with java.lang.AssertionError: Expected [0]. Actual [1618]: (P4) JDK-8344275: tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform (P4) JDK-8343396: Use OperatingSystem, Architecture, and OSVersion in jpackage tests tools/launcher: (P3) JDK-8341135: Incorrect format string after JDK-8339475 (P4) JDK-8339475: Clean up return code handling for pthread calls in library coding