dweiss commented on issue #14782:
URL: https://github.com/apache/lucene/issues/14782#issuecomment-2975300641

   I looked at the JDK issue and Archie couldn't reproduce the issue. Here's a 
repro - 
   ```
   .../jdk-25+27/bin/javac -source 24 -target 24 -Xlint:options -Xlint:-options 
-Werror Foo.java
   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
   1 error
   1 warning
   ```
   
   note there is a pair of -Xlint options - one enabling, the other disabling 
the 'options' flag. Archie is right that it works well if it's just 
```-Xlint:-options``` so I don't know if it should be classified as a bug in 
JDK... perhaps it could be more informative about conflicting options (or use 
their sequential order to enable/disable flags).
   
   I'll try to fix it in our build.


-- 
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

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