You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "dweiss (via GitHub)" <gi...@apache.org> on 2026/09/20 08:28:50 UTC

[PR] Only pass -Xlint:dangling-doc-comments to javac 23+ (branch_10x) [lucene]

dweiss opened a new pull request, #16689:
URL: https://github.com/apache/lucene/pull/16689

   Compiling `branch_10x` with JDK 22 fails with:
   
   ```
   > Task :lucene:core.tests:compileJava FAILED
   error: invalid flag: -Xlint:dangling-doc-comments
   ```
   
   The `dangling-doc-comments` lint category was added to javac in JDK 23, but `JavacConfigurationPlugin` only removed it for compilers older than 22 (this gate came in with the build infra backport, #16592). JDK 21 builds worked because the flag was stripped there; JDK 22 kept it and javac rejected it.
   
   This moves the flag to the `< 23` block, alongside `-Xlint:incubating`. `-Xlint:restricted` stays gated at `< 22`.
   
   Checked with `javac --help-lint` on Temurin 21 (none of these categories) and Temurin 23 (has `dangling-doc-comments`, `incubating`, `restricted`). I had no JDK 22 locally, so the CI run on JDK 22 is the real confirmation.
   
   This only applies to `branch_10x`; `main` requires a newer compiler and has no such gating.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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-unsubscribe@lucene.apache.org

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


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


Re: [PR] Only pass -Xlint:dangling-doc-comments to javac 23+ (branch_10x) [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss commented on PR #16689:
URL: https://github.com/apache/lucene/pull/16689#issuecomment-5748747177

   No forward port to main is needed because main doesn't have any conditional flag stripping (min is JDK 25).


-- 
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-unsubscribe@lucene.apache.org

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


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


Re: [PR] Only pass -Xlint:dangling-doc-comments to javac 23+ (branch_10x) [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss merged PR #16689:
URL: https://github.com/apache/lucene/pull/16689


-- 
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-unsubscribe@lucene.apache.org

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


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


Re: [PR] Only pass -Xlint:dangling-doc-comments to javac 23+ (branch_10x) [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss commented on PR #16689:
URL: https://github.com/apache/lucene/pull/16689#issuecomment-5748680936

   The patch is LLM generated but I've reviewed it, makes sense and is true.


-- 
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-unsubscribe@lucene.apache.org

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


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