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
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
- csr for
-
JDK-8344477 javac states that -proc:full is the default but the default as of 23 is -proc:none
-
- Closed
-
- relates to
-
JDK-8321314 Reinstate disabling the compiler's default active annotation processing
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/f5252900
-
Review(master) openjdk/jdk/22227