dweiss opened a new issue, #14782:
URL: https://github.com/apache/lucene/issues/14782

   ### Description
   
   Policeman jenkins complains when compiling against new Java versions, 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 added a temporary hack to not use -Werror on runtime java jdk25+.
   
   ### Version and environment details
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to