Posted in

Java 新闻综述:流收集器、项目 Loom、Hibernate 验证器、LangChain4j、Clojure_AI阅读总结 — 包阅AI

包阅导读总结

1.

“`markdown

Java、Stream Gatherers、Project Loom、Hibernate Validator、Clojure

“`

2.

本周(2024 年 9 月 2 日)的 Java 新闻综述,涵盖了 JEP 485、Project Loom 等多个项目的更新,包括版本发布、功能改进、漏洞修复等,还涉及 Hibernate Validator、Clojure 等的新进展。

3.

– Java 新闻综述

– OpenJDK

– JEP 485(Stream Gatherers)晋升为候选状态

– Project Loom

– 早期访问版本 Build 24-loom+7-60 发布,改进 Java 监视器实现

– JDK 23

– 早期访问版本 Build 37 为当前版本

– JDK 24

– 早期访问版本 Build 14 发布,包含多项更新

– TornadoVM

– 开源 IntelliJ 插件 TornadoInsight 1.2.3 发布,有多项变化

– Helidon

– 4.1.1 版本发布,包含 bug 修复等更新

– Micronaut

– 框架 4.6.1 版本发布,有核心更新

– Quarkus

– 3.14.2 版本发布,包含 bug 修复等

– Hibernate

– Hibernate Validator 9.0.0.Beta3 发布,有 bug 修复和 API 移除

– Clojure

– 1.12.0 版本发布,有功能新增和漏洞修复

– Eclipse Foundation

– Eclipse Vert.x 4.5.10 发布,解决多项问题

– Apache Software Foundation

– Apache Maven 4.0.0 第四个测试版发布,有功能改进

– LangChain4j

– 0.34.0 版本发布,有新集成和功能改进

– Jox

– 0.3.1 版本发布,改进 Select 类执行

思维导图:

文章地址:https://www.infoq.com/news/2024/09/java-news-roundup-sep02-2024/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global

文章来源:infoq.com

作者:Michael Redlich

发布时间:2024/9/9 0:00

语言:英文

总字数:1038字

预计阅读时间:5分钟

评分:90分

标签:Java,OpenJDK,项目 Loom,Hibernate 验证器,LangChain4j


以下为原文内容

本内容来源于用户推荐转载,旨在分享知识与观点,如有侵权请联系删除 联系邮箱 media@ilingban.com

This week’s Java roundup for September 2nd, 2024 features news highlighting: JEP 485, Stream Gatherers, promoted to Candidate; Project Loom Build 24-loom+7-60; Hibernate Validator 9.0.0.Beta3; LangChain4j 0.34.0; and Clojure 1.12.0.

OpenJDK

JEP 485, Stream Gatherers, was promoted from its JEP Draft 8335899 to Candidate status this past week. This JEP proposes to finalize this feature after two rounds of preview, namely: JEP 473: Stream Gatherers (Second Preview), to be delivered in the upcoming release of JDK 23; and JEP 461, Stream Gatherers (Preview), delivered in JDK 22. This feature was designed to enhance the Stream API to support custom intermediate operations that will “allow stream pipelines to transform data in ways that are not easily achievable with the existing built-in intermediate operations.” More details on this JEP may be found in the original design document and this InfoQ news story.

Project Loom

Build 24-loom+7-60 of the Project Loom early-access builds was made available to the Java community this past week and is based on Build 13 of the JDK 24 early-access builds. This build improves the implementation of Java monitors, also known as synchronized methods, for enhanced interoperability with virtual threads.

JDK 23

Build 37 remains the current build in the JDK 23 early-access builds. Further details on this release may be found in the release notes and details on the new JDK 23 features may be found in this InfoQ news story.

JDK 24

Build 14 of the JDK 24 early-access builds was made available this past week featuring updates from Build 13 that include fixes for various issues. More details on this release may be found in the release notes.

For JDK 23 and JDK 24, developers are encouraged to report bugs via the Java Bug Database.

TornadoVM

The release of TornadoInsight 1.2.3, an open-source IntelliJ plugin for TornadoVM, features notable changes such as: support for TornadoVM types (e.g., HalfFloat, CharArray, Matrix2DFloat) that were previously not included in TornadoInsight; resolutions to issues with dynamic and static checking; and the addition of try-with-resources to code generated with the transferToDevice() and transferToHost() methods, defined in the TornadoVM TaskGraph class, to ensure data is managed consistently during each task execution. Further details on this release may be found in the release notes.

Helidon

The release of Helidon 4.1.1 provides bug fixes, dependency upgrades and notable changes such as: an implementation of the gRPC MicroProfile Client API; allow the creation of empty SSE events using a new NO_DATA constant to the SseEvent class; and a replacement of the deprecated fixedRateBuilder() method with the preferred fixedRate() method, defined in the Scheduling class. More details on this release may be found in the release notes.

Micronaut

The Micronaut Foundation has released version 4.6.1 of the Micronaut Framework 4.6.1 featuring Micronaut Core 4.6.4, bug fixes, improvements in documentation and updates to modules: Micronaut Data and Micronaut Servlet. Further details on this release may be found in the release notes.

Quarkus

Quarkus 3.14.2, first maintenance release (version 3.14.0 was skipped) featuring bug fixes, dependency upgrades, most notably Micrometer Metrics 1.13.0. Other changes include: a resolution to a RuntimeException using the JaCoCo code coverage library with an application running virtual threads; the addition of the Jackson SerializableString interface on field names along with support for the @JsonProperty annotation in the Jackson serializers. More details on this release may be found in the changelog.

Hibernate

The third beta release of Hibernate Validator 9.0.0 features bug fixes and the removal of some APIs that have been deprecated for quite some time. Hibernate Validator has been the compatible implementation of the Jakarta Validation 3.1 specification since version 8.0.1.Final. This release provides continuous improvement for that compatible implementation.

Clojure

The release of Clojure 1.12.0 provides bug fixes, dependency upgrades and new features such as: new functions, add-lib(), add-libs() and sync-deps(), to interactively add libraries without restarting the JVM or losing state; and new functional interfaces that allow Clojure developers to invoke Java methods.

This release also addresses CVE-2024-22871, a vulnerability in which an attacker may use a specially crafted serializable object that when read, may cause an infinite loop resulting in a denial of service.

And finally, this will be the last release that supports JDK 8. Future releases will support a yet-to-be-announced LTS version of Java. Further details on this release may be found in the changelog.

Eclipse Foundation

The release of Eclipse Vert.x 4.5.10 features notable changes such as: a resolution to the copy constructor, defined in the SqlConnectOptions class, not copying an instance of the the TracingPolicy enum; and an implementation of the Oracle health check in the OracleJdbcConnection class.

This release also addresses CVE-2024-8391, a vulnerability in which the gRPC server did not limit the maximum length of message payload resulting in an overconsumption of memory. More details on this release may be found in the release notes along with a list of deprecations and breaking changes.

Apache Software Foundation

The fourth beta release of Apache Maven 4.0.0 provides dependency upgrades and notable changes such as: the ability to manually execute a GitHub action; a resolution to prevent a NullPointerException with no tags expected in the plugin.xml file; and a removal of the Java Locale class from the FileSizeFormat class that was unused. Further details on this release may be found in the release notes.

LangChain4j

Version 0.34.0 of LangChain for Java (LangChain4j) features new integrations: Google AI Gemini; Oracle Database Embedding Store; Couchbase Embedding Store; and SearchApi. Other notable changes include: a resolution to a failed parsing of an LLM response due to the JSON block from a POJO not having been extracted; and a refactor of the TokenStream interface and the AiServiceTokenStream class so that all methods available in the sub-interfaces are represented in TokenStream; and a new onRetrieved() method, defined in the TokenStream interface, used as a callback before invoking a language model in AiServiceTokenStream class. More details on this release may be found in the release notes.

Jox

The release of Jox 0.3.1, a virtual threads library that implements an efficient Channel data structure in Java designed to be used with virtual threads, features a short-circuit on execution of the Select class upon any error with the Channel class. Further details on this release may be found in the release notes.