Investigate the checker framework issue with JDK 23 build of Hibernate Search

Description

Building Hibernate Search with JDK 23 (and still targeting 17 as a release version) results in a compilation failure:

[INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] hibernate-search/v5migrationhelper/orm/src/main/java/org/hibernate/search/impl/FullTextSessionImpl.java:[40,6] error: cannot access UnknownKeyFor class file for org.checkerframework.checker.nullness.qual.UnknownKeyFor not found [INFO] 1 error

 

This seems to be coming from the checker framework used in Hibernate ORM.

While we still use JDK 21 to build Hibernate Search, we should figure out how to address this problem with JDK 23.

Java/Maven versions:

Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256) Maven home: /home/marko/.m2/wrapper/dists/apache-maven-3.9.8-bin/337e6d14/apache-maven-3.9.8 Java version: 23.0.1, vendor: Eclipse Adoptium, runtime: /home/marko/.sdkman/candidates/java/23.0.1-tem Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "6.11.8-300.fc41.x86_64", arch: "amd64", family: "unix"

Activity

Details

Assignee

Reporter

Labels

Components

Priority

Created November 25, 2024 at 4:06 PM
Updated December 4, 2024 at 8:45 AM

Flag notifications