Enabled javac -Xlint checking when build the jdk repo

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • 9
    • Affects Version/s: 8
    • Component/s: infrastructure
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: