JEP for Loom and Panama Projects, JobRunr 5.1.0, Kotlin 1.7.0 Preview

This week’s Java Digest May 2, 2022 features OpenJDK news, targeted JEPs for JDK 19, JobRunr 5.1.0, Quarkus 2.8.3.Final, Hibernate 6.0.1.Final, Kotlin 1.7.0 preview, Apache Camel version 3.14. 3 and 3.11.7, Apache Tika version 2.4.0 and 1.28.2, a Micronaut survey on a minimum JDK version, and the JFokus 2022 conference.

OpenJDK

After completing its week-long exam, JEP 425, Virtual Threads (Preview), was promoted from Proposed to target for Target status for JDK 19. This JEP, under the auspices of Project Loom, introduces virtual threads, lightweight threads that significantly reduce the effort of writing, maintaining, and watching high-throughput concurrent applications on the platform. Java form.

Although its week-long exam ended on May 5, 2022, JEP 427, Pattern Matching for switch (Third Preview), still remains as Proposed to target for JDK 19. This JEP, under the auspices of Project Amber, incorporates improvements in response to feedback from the previous two preview rounds: JEP 406, Pattern Matching for switch (Preview) (shipped in JDK 17) and JEP 420, Pattern Matching for switch (Second Preview) (shipped in JDK 18). Changes from JEP 420 include: protected models are replaced by when clauses in switch blocks; and the execution semantics of a model switch are more closely aligned with the inherited switch semantics when the value of the selector expression is null.

JEP 424, Foreign Function & Memory API (Preview), was promoted from Candidate for Proposed to target for JDK 19. This JEP, under the auspices of the Panama Project, is evolving: JEP 419, Foreign Function & Memory API (Second Incubator), delivered in JDK 18; and JEP 412, Foreign Function & Memory API (Incubator), delivered in JDK 17; to incorporate improvements based on feedback from the Java community. The review is scheduled to end on May 11, 2022.

JDK 19

Version 21 of the early access builds of JDK 19 was made available last week, with updates to version 20 that include fixes to various issues. More details can be found in the release notes.

For JDK 19, developers are encouraged to report bugs through the Java Bug Database.

Job Runr

Ronald Dehuysser, founder and lead developer of JobRunr, a utility for performing background processing in Java, released version 5.1.0 with support for Kotlin 1.6.20 and notable bugfixes such as: the useJsonMapper() method defined in the JobRunrConfiguration the class does not correctly update an instance of the JobMapper classroom; a situation in which the back-end server shuts down if an instance of the JobDetails the class cannot be deserialized; and a competitive situation in which a ClosedFileSystemException Is launched. More details about this release can be found in the release notes.

Quarks

Red Hat provided a third maintenance release with Quarkus 2.8.3.Final which comes with fixes such as: quarkus:dev does not work with version 2.8.2.Final; downgrade the PostgreSQL driver to version 42.3.3 until the Debezium to PostgreSQL connector supports version 42.3.4; and a new one /tokens endpoint that redirects to the Keycloak authentication server. This will most likely be the last maintenance release as Red Hat plans to ship Quarkus 2.9.0 during the week of May 9, 2022. Further details on this release can be found in the changelog.

Hibernate

Hibernate ORM 6.0.1.Final has been released and comes with two new type codes for a database: GEOGRAPHY to support native SQL-like geo-mapping; and SQLXML to support native SQL type mapping xml. The Antlr library has been upgraded to version 4.10.

Kotlin

On the road to Kotlin 1.7.0, JetBrains has provided a beta release that introduces new features such as: continued improvement of builder type inference for writing generic builders; the return of the min() and max() collection functions with non-nullable return types; More stable permanently non-nullable types, originally introduced in Kotlin 1.6.20, for better interoperability when extending Java classes and interfaces. and updates for the new Kotlin/Native Memory Manager. InfoQ will follow with more detailed news.

apache camel

The Apache Software Foundation has provided intermediate LTS releases for Camel 3.14.3 and Camel 3.11.7. Both releases feature: dependency upgrades to Spring Boot 2.6.7 and other Spring projects to address the Spring4Shell vulnerability; and many bugfixes and improvements. More details on these versions can be found in the release notes for version 3.11.7 and version 3.14.3.

Apache Tika

The Apache Tika team has released version 2.4.0 of its metadata extraction toolkit. Formerly a sub-project of Apache Lucene, this latest version comes with several security upgrades in their dependencies. the deeplearning4j dependencies, however, are no longer bundled in the tika-dl JAR, so developers have to provide them themselves.

The team also released Apache Tika 1.28.2 with security-related and general dependency upgrades as well as an upgrade to Apache POI 5.2.0 which provides significantly more logging from POI analyzers. The 1.x release train will reach end of life on September 30, 2022.

Micronaut

On the way to Micronaut 4.0, the Micronaut Foundation is ask the java community for an entry on a minimal version of the JDK. Developers interested in participating can do so by filling out this form.

JFokus Conference

JFokus 2022 was held at the Stockholm Waterfront Congress Center in Stockholm, Sweden last week, with many speakers from the Java community giving talks and leading workshops.



Source link

Steven L. Nielsen