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

Enabled javac -Xlint checking when build the jdk repo

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      The quality of the code in the jdk repository would be easier to maintain if the javac Xlint check were run over the code during the build. Specifically, once a particular class of warnings is cleared from the whole repository, that class of warning should be turned into an error so that the problem does not get accidentally reintroduced.

      As of the filing of this bug, the following options are believed to be usable to create a jdk build:

      -Xlint:-unchecked,-deprecation,auxiliaryclass,classfile,divzero,empty,fallthrough,finally,try,varargs -Werror,

      Over time, additional warnings categories should be added, such as serial, rawtypes, and unchecked.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                darcy Joe Darcy
                Reporter:
                darcy Joe Darcy
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: