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

Enabled javac -Xlint checking when build the jdk repo

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 8
    • 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.

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

              Created:
              Updated:
              Resolved: