Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-dev] JDK 18 Rampdown Phase 2 & JDK 19 Early-Access Builds
  • From: David Delabassee <david.delabassee@xxxxxxxxxx>
  • Date: Mon, 31 Jan 2022 10:49:13 +0100
  • Arc-authentication-results: i=1; 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Jv6/0MmFKXYtQLT5imnmQft6/24R9agCdcvh27cg7kg=; b=CyxbnIkSVAsNi6M8/35TjjZpiHjO1h1HkawRMgSHZgcbmoKCs6xmWSRcH8fMIbgurRyyyvnM+NV5wh0HTReXBmGvIVkj0Vr1MyWLoE+ozZZDR/a2b9c5z/t+Lp+W3uj4+5lJP8ZpQSBVtCAAVwtjJw2t2ORZ/c1biWZrL13eJjEb6ykkpNXFmmrEUwfQgtL1DmlMVNmJZKMDuPVj05Kw2JYUpGKBTscIsTFY1Ivkm5Oz3fw2DisvTaRTwG+q/QhgYVGZnElJcv7lcdFKLZ9lKlwylB1AEo4eLF0AoR8EshYeUv3c8IjF/P7u8h8EdWIw/xT8m7EPmd+HmMXh7SftwQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=MK8dHC/wZlmSBsOP4c/THolzPN6+YsXQgBIFM8bEaMXuB5eHkhCRi1fBYGmjNa/doX4fl8UamzFhLvi+yJW5AjcXStFr4wXQ9O//2qdmjqMGNHMHrK4FZhbP7y7hVP8BTACWQyVNW5CbUhqoZkoC/0xE+tGZaZdZJ8KwL8T47kZvTuvSkwLM63bof7YFJUUVlT/O/4JyxhIohsFPCEx+LxesTDMGQ5cSAJEHl2fQX6KONFJwJS6ZWgli5Izsw4c67OfpEuzl/AfQCxRI5eZxehV9i1C9I6v/CYgdyR1vXRVlaI/FKwXn3tHCvw+twYUz85IP23HUjQe40XUf8atyWA==
  • Delivered-to: jetty-dev@xxxxxxxxxxx
  • List-archive: <>
  • List-help: <>
  • List-subscribe: <>, <>
  • List-unsubscribe: <>, <>
  • User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0


First off, on behalf of Oracle’s Java Team, I’d like to wish you a happy and prosperous new year!

In 2022, two Java releases will be made available:
- JDK 18 (March 2022)
- JDK 19 (September 2022)

JDK 18[1] has entered Rampdown Phase Two (RDP2)[2]. Given that and to be better prepared for the future, it makes sense to begin testing your project(s) using early access (EA) builds of JDK 19[3]. Your feedback allows us to evaluate and address issues you find while testing EA builds.

This time, we have two heads-up to share:

## Heads-Up: JDK 18 - JEP 421 Deprecate Finalization for Removal

Finalization is an outdated and brittle resource cleaning mechanism present in the platform since, well, forever. Its use has been discouraged for quite some time in favor of better alternatives (i.e., 'try with resources' and Cleaners). JEP 421 is another step towards the removal of finalizers as it offers tools to investigate if a codebase is still using finalization. To learn more, you should read JEP 421[4]. You should also listen to the latest episode of the Inside Java Podcast[5] dedicated to this topic. We encourage you to check if your project is still using finalizers. If so, you should start to think about removing them and rely instead on either 'try with resources' or Cleaners.

## Heads-Up: JVM does not flag constant class entries ending in '/'

Prior to JDK 19, the JVM is loading classes (1) whose class file major version is <49, i.e., before JDK 1.5, and (2) the class's name ends with a '/'. This violates section 4.2.1 of the JVM specification [6] and is addressed in JDK 19. In JDK 19, the JVM is throwing, for such classes, a ClassFormatError exception as it already does with newer classes (JDK 1.5+). Given that this issue affects only pre-JDK 1.5 classes, we expect the compatibility risk to be very low.

For more details, see JDK-8278448[7].


## JDK 18

JDK 18 is now in RDP2 (Rampdown Phase Two) with its feature set frozen a few weeks back when it entered RDP1.

### JEPs integrated to JDK 18:

- JEP 400: UTF-8 by Default
- JEP 408: Simple Web Server
- JEP 413: Code Snippets in Java API Documentation
- JEP 416: Reimplement Core Reflection with Method Handles
- JEP 417: Vector API (Third Incubator)
- JEP 418: Internet-Address Resolution SPI
- JEP 419: Foreign Function & Memory API (Second Incubator)
- JEP 420: Pattern Matching for switch (Second Preview)
- JEP 421: Deprecate Finalization for Removal

JDK 18 Early-Access builds 33 are now available[8], and are provided under the GNU General Public License v2, with the Classpath Exception. Also available are the Release Notes[9].


### Changes in JDK 18 since Rampdown Phase One that are of interest:

- JDK-8278373: Correcting References to Overloaded Methods in Javadoc Documentation - JDK-8279065: Deserialization filter and filter factory property error reporting under specified
- JDK-8255409: SunPKCS11 Provider Now Supports Some PKCS#11 v3.0 APIs
- JDK-8275610: C2: Object field load floats above its null check resulting in a segfault [Reported by Apache POI]

## JDK 19

JDK 19 Early-Access builds 7 are now available[10], and are provided under the GNU General Public License v2, with the Classpath Exception. Also available are the Release Notes[11].


### Changes in recent JDK 19 EA builds that maybe of interest:

- JDK-8279258: Auto-vectorization enhancement for two-dimensional array operations
- JDK-8273914: Indy string concat changes order of operations
- JDK-8268081: Upgrade Unicode Data Files to 14.0.0
- JDK-8278087: Deserialization filter and filter factory property error reporting under specified - JDK-8276766: Enable jar and jmod to produce deterministic timestamped content - JDK-8274679: Remove unnecessary conversion to String in security code in java.base
- JDK-8279833: Loop optimization issue in String.encodeUTF8_UTF16
- JDK-8279064: New options for ktab to provide non-default salt
- JDK-8280055: JFR: Improve ObjectContext implementation
- JDK-8268831: Improve javadoc tool handling of streams

## Topics of Interest:

- "State of Valhalla" update

- Java's Plans for 2022 - Inside Java Newscast

- New Loom Early Access builds based on JDK 19 EAb2

- New Panama Foreign Early-Access builds (including jextract) jdk 18

- January 2022 Critical Patch Update Released
As part of the Jan 2022 Critical Patch Update we released JDK 17.0.2 LTS, JDK 11.0.14 LTS, JDK 8u321, and JDK 7u331 as well as OpenJDK 17.0.2 (publicly available).

In closing, I'd like to thank you again for being a welcomed part of the Quality Outreach program! We look forward to your continued participation in 2022. And as always, if you find an issue, please let us know through the usual channels.



Back to the top