-
Bug
-
Resolution: Duplicate
-
P3
-
8
-
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.
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.
- duplicates
-
JDK-8024643 Turn on javac lint checking in building the jdk repo
-
- Resolved
-
- relates to
-
JDK-8022852 Fix serial javac warnings in ArrayPrefixHelpers
-
- Closed
-
-
JDK-8017109 Cleanup overrides warning in src/solaris/classes/sun/print/AttributeClass.java
-
- Resolved
-