RFR: JDK-8310061: Note if implicit annotation processing is being used [v4]

Jonathan Gibbons jjg at openjdk.org
Wed Jun 28 17:15:55 UTC 2023


On Wed, 21 Jun 2023 23:09:14 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Emit a note warning of the possibility of changing the implicit running of annotation processors in a future release.
>
> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Expand cases where an annotation processor path is detected.

src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java line 437:

> 435:         optionsCheckingInitiallyDisabled =
> 436:             options.isSet(Option.XLINT_CUSTOM, "-options") ||
> 437:             options.isSet(Option.XLINT_CUSTOM, "none");

You have a `context`, so you can use get a `Lint` object with `Lint.instance(context)` and then use `isEnabled(LintCategory)`

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14499#discussion_r1245531666


More information about the compiler-dev mailing list