Liberica JDK 19.0.2+9 Release Notes


The full version string for this update release is 19.0.2+9. The version number is 19.

Liberica JDK 19.0.2+9

Liberica is a certified, Java SE 19-compliant distribution of OpenJDK 19.0.2 which works on server (Linux x86_64, Linux ARM64, Windows 64), desktop (Windows 64, Windows 32, Mac, Linux x86_64), and embedded devices (Linux ARM64, Linux ARMv7, including Raspberry Pi 2 & 3 (ARMv6 hardfloat)). It has the following notable additions:

  • Linux x86_64 version contains experimental support for ZGC.
  • Linux x86_64, ARMv8 and ARMv7 distributions include a choice of Client VM, Server VM and Minimal VM.
  • Alpine Linux x86_64 version is build with musl support.
  • Windows x86_64, Windows x86, Windows ARMv8, Mac, Linux x86_64, Linux x86 and Linux ARMv7 distributions contain OpenJFX 19.
  • Linux ARMv7 distribution contains Device IO API compiled for Raspberry Pi.

Please refer to the Oracle JDK 19.0.2 release notes for further information on JDK 19 features. This document further outlines the peculiarities of Liberica distribution as compared to Oracle JDK 19 distribution.

Supported Server and Desktop configurations

Liberica is supported on the following OSes:

  • Ubuntu Linux 16.04, 18.04, 20.04 (x86, x86_64, ARMv7, ARMv8)
  • Debian Linux 8, 9, 10 (x86, x86_64, ARMv7, ARMv8)
  • Red Hat, Oracle Linux and CentOS 8x, 6.x, 7.x (x86, x86_64, ARMv7, ARMv8)
  • Alpine Linux 3.7+ (x86_64, ARMv8)
  • SUSE Linux Enterprise 12, 15 and tumbleweed (x86_64, ARMv8)
  • Apple macOS 10.11+ (x86_64, ARMv8)
  • Microsoft Windows 2019, Windows 2016, Windows 2012 R2, Windows 10, Windows 8, Windows 7 (x86, x86_64, ARMv8)

It is also known to work on other Linux distributions and Windows versions.

Note: The minimum supported Linux kernel version is 2.6.18 and GLIBC version 2.6. LibericaFX works on all supported Ubuntu versions, Red Hat Linux family starting from 7.x and SUSE versions with GTK3 backend.

Supported Embedded configurations

Liberica is tested and certified on Raspberry Pi 2, 3 and 4 running the following OSes:

  • Raspbian OS (armhf)
  • OpenSUSE (armv8)

It is also known to work with Debian (armhf) and Ubuntu (armhf).

Liberica JDK 19.0.2 distribution

Liberica JDK 19.0.2 are distributed as .rpm, .zip, .deb and .tar.gz packages. Please select the one which is most appropriate for your purposes.

Liberica JDK 19.0.2 introduced all new features supported by OpenJDK 19.

With the introduction of the Jigsaw feature in JDK 9 and Minimal VM it is now possible to create a Runtime that is sufficient to run your application and trim down the size of the Runtime. To generate a Runtime with just the Minimal VM, add --vm=minimal to jlink options.

Liberica JDK continues to provide support for AOT and Graal JIT. Since in OpenJDK 19 builds these features are deemed experimental and deprecated, it is recommended to compile native executables with Liberica Native Image Kit to avoid errors.

By default, the Liberica uses Server VM. Server VM and Client VM can be enabled with -server and -client command line options, respectively. In case the deployment requires to minimize the footprint, it may be beneficial to use Minimal VM, which emphasises on a minimal footprint. It has C1 JIT compiler only, Serial GC and no serviceability features.

LibericaFX for the Raspberry Pi

Liberica JDK 19 come with a bundled LibericaFX implementation, which is based on OpenJFX. The following tables lists Java FX modules status of Liberica distribution

  • Java FX Graphics - works.
  • Java FX Controls - works.
  • Java FX Media - does not work.
  • Java FX Webkit - does not work.

The following pipelines are known to work: EGL, SW (direct framebuffer) and GTK. By default, Liberica tries to use the accelerated EGL pipeline, which requires the presence of EGL libraries. If they are not found, the implementation falls back to software rendering.

Use the following command line options to specify the rendering pipeline:

  • -Dprism.order=sw forces the use of software rendering pipeline. *
  • -Dprism.order=es2 forces the use of EGL pipeline and hardware acceleration. *
  • -Djavafx.platform=gtk if you would like to launch a LibericaFX application using Liberica from X11.

* Not supported on Raspberry Pi 4.

Please refer to the following wiki for more information.

Device IO API for the Raspberry Pi

Liberica JDK 19 comes with a bundled OpenJDK Device I/O (DIO) API implementation module. DIO provides a Java API for accessing Raspberry PI GPIO pins and for communicating with peripheral devices:

  • General Purpose Input/Output (GPIO).
  • Inter-Integrated Circuit Bus (I2C), Serial Peripheral Interface (SPI).
  • Universal Asynchronous Receiver/Transmitter (UART).

Please refer to the following wiki for more information.

Security Baselines

BellSoft Liberica follows the security baselines for Oracle Java SE. Please refer to the Oracle documentation for a list of issues fixed in a given release.

Known Issues

LibericaFX and EGL on Raspbian

As of 2017, the default location of Broadcom libEGL.so and libGLESv2.so has changed in Raspbian OS. If you'd like to leverage hardware EGL acceleration available from Broadcom video drivers in LibericaFX while running a recent Raspbian OS, run the following command:

cd /opt/vc/lib
sudo ln -s libbrcmEGL.so libEGL.so
sudo ln -s libbrcmGLESv2.so libGLESv2.so

CVEs

This is the list of the security issues fixed in this release. CVSS scores are provided using the CVSS version 3.1 scoring system.

CVE ID Score Component Module Attack_vector Complexity Privileges User interaction Scope Confidentiality Integrity Availability
CVE-2023-21835 5.3 security-libs javax.net.ssl network low none none unchanged none none low
CVE-2023-21843 3.7 client-libs javax.sound network high none none unchanged none low none

Issues fixed

Issue Description
8299628 BMP top-down images fail to load after JDK-8289336
8294779 Improve FX pages
8292112 Better DragView handling
8292105 Improve Robot functionality
8292097 Better video decoding
8289336 Better platform image support
8289343 Better GL support
8295723 security/infra/wycheproof/RunWycheproof.java fails with Assertion Error
8295687 Better BMP bounds
8293742 Better Banking of Sounds
8293734 Improve BMP image handling
8293717 Objective view of ObjectView
8293598 Enhance InetAddress address handling
8293554 Enhanced DH Key Exchanges
8288516 Enhance font creation
8287411 Enhance DTLS performance
8286496 Improve Thread labels
8286070 Improve UTF8 representation
8295447 NullPointerException with invalid pattern matching construct in constructor call
8296904 Improve handling of macos xcode toolchain
8297309 Memory leak in ShenandoahFullGC
8290164 compiler/runtime/TestConstantsInError.java fails on riscv
8297451 ProcessHandleImpl should assert privilege when modifying reaper thread
8296463 Memory leak in JVM_StartThread with the integration of Virtual threads
8297476 Increase InlineSmallCode default from 1000 to 2500 for RISC-V
8297147 UnexpectedSourceImageSize test times out on slow machines when fastdebug is used
8295264 Fix PaX check on RISC-V
8296602 RISC-V: improve performance of copy_memory stub
8297241 Update sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java
8297153 sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java fails again
8296945 PublicMethodsTest is slow due to dependency verification with debug builds
8296957 One more cast in SAFE_SIZE_NEW_ARRAY2
8022403 sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java fails
8294538 missing is_unloading() check in SharedRuntime::fixup_callers_callsite()
8290964 C2 compilation fails with assert "non-reduction loop contains reduction nodes"
8285835 SIGSEGV in PhaseIdealLoop::build_loop_late_post_work
8287217 C2: PhaseCCP: remove not visited nodes, prevent type inconsistency
8292780 misc tests failed "assert(false) failed: graph should be schedulable"
8293996 C2: fix and simplify IdealLoopTree::do_remove_empty_loop
8296771 RISC-V: C2: assert(false) failed: bad AD file
8295414 [Aarch64] C2: assert(false) failed: bad AD file
8296632 Write a test to verify the content change of TextArea sends TextEvent
8285604 closed sun/java2d/GdiRendering/ClipShapeRendering.java failed with "Incorrect color ffeeeeee instead of ff0000ff in pixel (100, 100)"
8178698 javax/sound/midi/Sequencer/MetaCallback.java failed with timeout
8296448 RISC-V: Fix temp usages of heapbase register killed by MacroAssembler::en/decode_klass_not_null
8295926 RISC-V: C1: Fix LIRGenerator::do_LibmIntrinsic
8296970 Remove sysThreadAvailableStackWithSlack from hotspot-symbols
8286624 Regression Test CoordinateTruncationBug.java fails on OL8.3
8296083 javax/swing/JTree/6263446/bug6263446.java fails intermittently on a VM
8296480 java/security/cert/pkix/policyChanges/TestPolicy.java is failing
8296733 JFR: File Read event for RandomAccessFile::write(byte[]) is incorrect
8296496 Overzealous check in sizecalc.h prevents large memory allocation
8296108 (tz) Update Timezone Data to 2022f
8296715 CLDR v42 update for tzdata 2022f
8296485 BuildEEBasicConstraints.java test fails with SunCertPathBuilderException
8288132 Update test artifacts in QuoVadis CA interop tests
8295469 S390X: Optimized builds are broken
8279941 sun/security/pkcs11/Signature/TestDSAKeyLength.java fails when NSS version detection fails
8292159 TYPE_USE annotations on generic type arguments of record components discarded
8295554 Move the "sizecalc.h" to the correct location
8294840 langtools OptionalDependencyTest.java use File.pathSeparator
8293701 jdeps InverseDepsAnalyzer runs into NoSuchElementException: No value present
8292695 SIGQUIT and jcmd attaching mechanism does not work with signal chaining library
8292899 CustomTzIDCheckDST.java testcase failed on AIX platform
8277970 Test jdk/sun/security/ssl/SSLSessionImpl/NoInvalidateSocketException.java fails with "tag mismatch"
8292385 assert(ctrl == kit.control()) failed: Control flow was added although the intrinsic bailed out
8293816 CI: ciBytecodeStream::get_klass() is not consistent
8292158 AES-CTR cipher state corruption with AVX-512
8295268 Optimized builds are broken due to incorrect assert_is_rfp shortcuts
8294307 ISO 4217 Amendment 173 Update
8029633 Raw inner class constructor ref should not perform diamond inference
8295173 (tz) Update Timezone Data to 2022e
8290900 Build failure with Clang 14+ due to function warning attribute
8294357 (tz) Update Timezone Data to 2022d
8292969 Bad Thread Utilization in ForkJoinPool
8291633 Build failures with GCC 11, Alpine 3 due to incompatible casts from nullptr
8290529 C2: assert(BoolTest(btest).is_canonical()) failure
8294517 Update jdk19u fix version to 19.0.2
8288377 [REDO] DST not applying properly with zone id offset set with TZ env variable
8293834 Update CLDR data following tzdata 2022c update
8291508 Fix some tests with "requires vm.jvmti & vm.continuations"
8290496 riscv: Fix build warnings-as-errors with GCC 11
8286314 Trampoline not created for far runtime targets outside small CodeCache
8288992 AArch64: CMN should be handled the same way as CMP
8290246 test fails "assert(init != __null) failed: initialization not found"
8290451 Incorrect result when switching to C2 OSR compilation from C1
8290711 assert(false) failed: infinite loop in PhaseIterGVN::optimize
8290705 StringConcat::validate_mem_flow asserts with "unexpected user: StoreI"
8293044 C1: Missing access check on non-accessible class
8291775 C2: assert(r != __null && r->is_Region()) failed: this phi must have a region
8291599 Assertion in PhaseIdealLoop::skeleton_predicate_has_opaque after JDK-8289127
8290781 Segfault at PhaseIdealLoop::clone_loop_handle_data_uses
8292756 java.lang.AssertionError at at jdk.compiler/com.sun.tools.javac.code.Scope$ScopeImpl.leave(Scope.java:386)
8293348 A false cyclic inheritance error reported
8293578 Duplicate ldc generated by javac
8293100 RISC-V: Need to save and restore callee-saved FloatRegisters in StubGenerator::generate_call_stub