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 2025/09/05 13:25:48 UTC

(lucene) branch main updated: Support JDK 25 in Panama Vectorization Provider (#15157)

This is an automated email from the ASF dual-hosted git repository.

chegar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new 6cbd7427ccc Support JDK 25 in Panama Vectorization Provider (#15157)
6cbd7427ccc is described below

commit 6cbd7427ccc47f890474574b6f26a1083fa80514
Author: Chris Hegarty <62...@users.noreply.github.com>
AuthorDate: Fri Sep 5 14:25:42 2025 +0100

    Support JDK 25 in Panama Vectorization Provider (#15157)
    
    This commit updates the Vectorization Provider to support JDK 25. The API has not changed so the changes minimally bump the major JDK check, and enable the incubating API during testing.
---
 lucene/CHANGES.txt                                                      | 2 ++
 .../org/apache/lucene/internal/vectorization/VectorizationProvider.java | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index bafa134ca6b..a05c3ff976c 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -184,6 +184,8 @@ New Features
 
 * GITHUB#15110: PostingsDecodingUtil: interchange loops to enable better memory access and SIMD vectorisation. (Ramakrishna Chilaka)
 
+* GITHUB#15157: Support JDK 25 in Panama Vectorization Provider. (Chris Hegarty)
+
 Improvements
 ---------------------
 * GITHUB#14458: Add an IndexDeletion policy that retains the last N commits. (Owais Kazi)
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 f4829327d44..48c515b7df5 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
@@ -64,7 +64,7 @@ public abstract class VectorizationProvider {
 
   private static final String UPPER_JAVA_FEATURE_VERSION_SYSPROP =
       "org.apache.lucene.vectorization.upperJavaFeatureVersion";
-  private static final int DEFAULT_UPPER_JAVA_FEATURE_VERSION = 24;
+  private static final int DEFAULT_UPPER_JAVA_FEATURE_VERSION = 25;
 
   private static int getUpperJavaFeatureVersion() {
     int runtimeVersion = DEFAULT_UPPER_JAVA_FEATURE_VERSION;