You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ch...@apache.org on 2024/08/22 13:02:23 UTC
(lucene) branch branch_9x updated: Support JDK 23 in Panama Vectorization Provider (#13678)
This is an automated email from the ASF dual-hosted git repository.
chegar pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new b5c410da870 Support JDK 23 in Panama Vectorization Provider (#13678)
b5c410da870 is described below
commit b5c410da87002b6ac29fa7d542101e400b677926
Author: Chris Hegarty <62...@users.noreply.github.com>
AuthorDate: Thu Aug 22 13:51:32 2024 +0100
Support JDK 23 in Panama Vectorization Provider (#13678)
This commit updates the Vectorization Provider to support JDK 23. The API has not changed so the changes minimally bump the major JDK check, and enable the incubating API during testing
---
gradle/generation/extract-jdk-apis.gradle | 2 +-
lucene/CHANGES.txt | 2 ++
.../org/apache/lucene/internal/vectorization/VectorizationProvider.java | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/gradle/generation/extract-jdk-apis.gradle b/gradle/generation/extract-jdk-apis.gradle
index 8ebdd6b1e33..73d734956dd 100644
--- a/gradle/generation/extract-jdk-apis.gradle
+++ b/gradle/generation/extract-jdk-apis.gradle
@@ -20,7 +20,7 @@ def resources = scriptResources(buildscript)
configure(rootProject) {
ext {
// also change this in extractor tool: ExtractForeignAPI
- vectorIncubatorJavaVersions = [ JavaVersion.VERSION_20, JavaVersion.VERSION_21, JavaVersion.VERSION_22 ] as Set
+ vectorIncubatorJavaVersions = [ JavaVersion.VERSION_20, JavaVersion.VERSION_21, JavaVersion.VERSION_22, JavaVersion.VERSION_23 ] as Set
}
}
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 527451f91a1..0ce8e374d43 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -41,6 +41,8 @@ New Features
* GITHUB#13568: Add sandbox facets module to compute facets while collecting. (Egor Potemkin, Shradha Shankar)
+* GITHUB#13678: Add support JDK 23 to the Panama Vectorization Provider. (Chris Hegarty)
+
Improvements
---------------------
diff --git a/lucene/core/src/java/org/apache/lucene/internal/vectorization/VectorizationProvider.java b/lucene/core/src/java/org/apache/lucene/internal/vectorization/VectorizationProvider.java
index 38524a6a0f3..05d75594a79 100644
--- a/lucene/core/src/java/org/apache/lucene/internal/vectorization/VectorizationProvider.java
+++ b/lucene/core/src/java/org/apache/lucene/internal/vectorization/VectorizationProvider.java
@@ -112,7 +112,7 @@ public abstract class VectorizationProvider {
// visible for tests
static VectorizationProvider lookup(boolean testMode) {
final int runtimeVersion = Runtime.version().feature();
- if (runtimeVersion >= 20 && runtimeVersion <= 22) {
+ if (runtimeVersion >= 20 && runtimeVersion <= 23) {
// is locale sane (only buggy in Java 20)
if (isAffectedByJDK8301190()) {
LOG.warning(