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

Add -proc:full to describe current default annotation processing policy

XMLWordPrintable

    • behavioral
    • minimal
    • No impact of existing use cases.
    • add/remove/modify command line option
    • JDK

      Summary

      Add -proc:full to explicitly specify both annotation processing and compilation are requested of javac. (This is currently the default policy.) No changes from original CSR JDK-8308346.

      Problem

      The default policy for annotation processing does not have a value for the -proc option.

      Solution

      Add -proc:full as a third recognized option, alongside -proc:none and -proc:only.

      Specification

      The -help output of javac will mention the new alternative:

        -proc:{none,only,full}
              Control whether annotation processing and/or compilation is done.

      and the javac "manpage" will be updated similar to:

      -`-proc:`\[`none`, `only`\]
      +`-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.
      +    without any subsequent compilation. `-proc:full` means that annotation
      +    processing is done with subsequent compilation.

            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: