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

javac states that -proc:full is the default but the default as of 23 is -proc:none

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 24
    • 17, 23, 24
    • tools
    • b25
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      The javac doc: https://docs.oracle.com/en/java/javase/23/docs/specs/man/javac.html

      Says:

      -proc:[none, only, full]
      Controls whether annotation processing and compilation are done. -proc:none means that compilation takes place without annotation processing. -proc:only means that only annotation processing is done, without any subsequent compilation. If this option is not used, or -proc:full is specified, annotation processing and compilation are done.

      The line: "If this option is not used, or -proc:full is specified, annotation processing and compilation are done."

      Is incorrect. If the option is not used -proc:none is the default.

      Likewise this documentation needs to be updated:

      https://docs.oracle.com/en/java/javase/23/docs/specs/man/javac.html#annotation-processing

      > "Unless annotation processing is disabled with the -proc:none option, the compiler searches for any annotation processors that are available."

      Annotation processing is now always disabled unless passed the -proc:only or -proc:full.


      FREQUENCY : always


            darcy Joe Darcy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: