JDK-8341935 : javac states that -proc:full is the default but the default as of 23 is -proc:none
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 17,23,24
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2024-10-10
  • Updated: 2024-11-27
  • Resolved: 2024-11-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24 b25Fixed
Related Reports
CSR :  
Relates :  
Description
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



Comments
Changeset: f5252900 Branch: master Author: Joe Darcy <darcy@openjdk.org> Date: 2024-11-20 00:06:24 +0000 URL: https://git.openjdk.org/jdk/commit/f525290000bf8583617047aaeb894bf90332d2e9
20-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22227 Date: 2024-11-19 06:48:52 +0000
19-11-2024

This is a document issue and moved to JDK for further clarifications.
11-10-2024