Your analysis is right. Let's just suppress that warning for the MR-JAR compilation. I already disables more stuff.

Uwe

Am 14.06.2025 um 23:13 schrieb Dawid Weiss:

This... is weird. It complains when compiling against new Java, for example:

./gradlew compileMain24Java -Pruntime.java.home=/jdks/jdk-25+27 --rerun-tasks

the problem is this:

warning: [options] location of system modules is not set in conjunction with -source 24   not setting the location of system modules may lead to class files that cannot run on JDK 24     --release 24 is recommended instead of -source 24 -target 24 because it sets the location of system modules automatically
error: warnings found and -Werror specified

but we do set:

-Xlint:-options

so I'm not sure why this warning is even triggered. We also can't use --release because we do some other tweaks to java.base in lucene.java.core.mrjar.gradle.

I haven't had the time to try to track if it's a jdk regression.

Dawid

On Sat, Jun 14, 2025 at 10:13 PM Policeman Jenkins Server <jenk...@thetaphi.de> wrote:

    Build: https://jenkins.thetaphi.de/job/Lucene-nightly-main-Linux/263/
    Java: 64bit/hotspot/jdk-25-ea+27 -XX:-UseCompressedOops
    -XX:+UseParallelGC

    No tests ran.

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: builds-unsubscr...@lucene.apache.org
    For additional commands, e-mail: builds-h...@lucene.apache.org

--
Uwe Schindler
Achterdiek 19, D-28357 Bremen
https://www.thetaphi.de
eMail:u...@thetaphi.de

Reply via email to