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

Extract command-line help for -Xlint sub-options to new --help-lint

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 17
    • tools
    • None
    • behavioral
    • minimal
    • This patch has less risk to the compatibility.
    • add/remove/modify command line option
    • JDK

      Summary

      Add new compiler option: --help-lint.

      Problem

      Currently, the output of the option --help-extra(-X) includes the information of -Xlint sub-options(sub-options are also called supported keys). The number of the -Xlint sub-options is growing so that the output of the option --help-extra(-X) grows correspondingly. It makes the output complicated and unclear. And it is uncomfortable to the users who don't want to read the -Xlint sub-options.

      Solution

      We can extract the information about -Xlint sub-options into a new option -help-lint which keeps the output of the --help-extra(-X) clear.

      Specification

      After completing this feature, the compiler will have the following behavior.

      1. When we use option --help-extra(-X), the compiler only output the information about the top options.

      2. When we use option --help-lint, the compiler would output the information about the -Xlint sub-options.

      This change would not affect other options and the public API of the compiler.

            gli Guoxiong Li
            jjg Jonathan Gibbons
            Joel Borggrén-Franck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: