Update on lint warnings in the jdk repo
Joe Darcy
joe.darcy at oracle.com
Fri Aug 1 16:33:16 UTC 2014
Hello,
I'm happy to report that after an extensive cleanup effort, raw types
and unchecked warnings have been eliminated from the jdk repo and those
warnings are successfully enabled in the build:
8039102: Add raw and unchecked lint warnings to build of jdk repository
http://hg.openjdk.java.net/jdk9/dev/jdk/rev/d766f563d30d
Next up, deprecation :-)
-Joe
On 07/23/2014 01:19 PM, Joe Darcy wrote:
> Hello,
>
> A quick update on lint warnings in the jdk repo, the unchecked and
> rawtypes warnings are nearly eliminated!
>
> Once some warning fixes already in the client repo [1] are integrated
> into the dev repo and the sole open subtask of
>
> JDK-8039096: Fix raw and unchecked lint warnings in jdk libraries
>
> is fixed in dev, all the unchecked and rawtypes warnings will be
> resolved. At that point, those warnings will be enabled in the build
> (after any straggling newly-introduced raw and unchecked warnings are
> cleaned up). The warnings should be able to be enabled within the next
> few weeks.
>
> Of all the javac lint warning categories, once rawtypes and unchecked
> are cleared, that will just leave ~500 deprecation warnings in the
> open repo. Assuming deprecation warning on import statements can be
> elided [2], I'd like to approach eliminating deprecation warnings
> differently than the previously eliminated categories of lint
> warnings. Resolving issues in previous lint warning categories relied
> primarily on general Java language expertise without much
> component-area expertise being necessary; resolving deprecations
> warnings has the reversed expertise balance. Therefore, I propose to
> address the deprecation warnings by suppressing them in a small number
> of changesets and at the same time filing follow-up bugs at, say, a
> package-level granularity for the component teams to do a more
> thorough investigation of replacingg the deprecated functionality.
> That approach should be quick to execute, will not worsen the code
> quality in the jdk repo, and will prevent any unintended new
> deprecation warnings from being added.
>
> Comments?
>
> Thanks,
>
> -Joe
>
> [1] JDK-8049797: Fix raw and unchecked lint warnings in
> javax.swing.SortingFocusTraversalPolicy
> JDK-8042872: Fix raw and unchecked warnings in sun.applet
>
> [2] JDK-8042566: Elide deprecation warnings on import statements
More information about the jdk9-dev
mailing list