Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8321321

Defer policy of disabling annotation processing by default

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 22
    • tools
    • None
    • behavioral
    • minimal
    • Reinstate previous policy for JDK 22 before the fix for JDK-8306819 .
    • add/remove command in $JDK/bin, add/remove/modify command line option
    • JDK

      Summary

      Revert the changes made under JDK-8317544 and temporarily restore the policy of implicit annotation processing by default, until JDK-8321319.

      Problem

      Build tools have not as of yet adapted to the change in javac's policy.

      Solution

      With this change, javac will again print the following note:

      Annotation processing is enabled because one or more processors were found
      on the class path. A future release of javac may disable annotation processing
      unless at least one processor is specified by name (-processor), or a search
      path is specified (--processor-path, --processor-module-path), or annotation
      processing is enabled explicitly (-proc:only, -proc:full).
      Use -Xlint:-options to suppress this message.
      Use -proc:none to disable annotation processing.

      and the "future release" is delayed.

      Specification

      No specification changes.

            darcy Joe Darcy
            darcy Joe Darcy
            Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: