JDK 8 Warnings Cleanup Day -- Dec. 1st, 2011
Jonathan Gibbons
jonathan.gibbons at oracle.com
Tue Nov 29 08:53:07 PST 2011
I've written a small utility to summarize which javac warnings are found
where in JDK. The program is a wrapper around javac. It accepts files or
packages, and monitors the diagnostics reported by javac.
The results from running it on the java.** packages are listed below.
The source for the program is on
http://cr.openjdk.java.net/~jjg/JavacWarnings. It's a simple one-file
program, so should be easy for anyone to compile and run for themselves
if they'd like to: you just need to compile and run against a recent JDK
8 tools.jar, to get at the javac classes.
-- Jon
$ /opt/jdk/1.8.0/bin/java -Xmx768m -jar dist/JavacWarnings.jar
-bootclasspath /w/jjg/work/tl/build/linux-i586/classes/ -sourcepath
/w/jjg/work/tl/jdk/src/share/classes/ 'java.**'
Compiling 1497 files
cast dep_ann deprecat fallthro
raw serial static try unchecke varargs (total)
java.applet 1 0 4 0
0 0 0 0 0 0 5
java.awt 46 0 41 1
156 1 7 0 133 0 385
java.awt.color 0 0 0 0
1 2 0 0 2 0 5
java.awt.datatransfer 3 0 5 0
101 1 0 0 78 0 188
java.awt.dnd 4 0 2 1
1 1 0 0 2 0 11
java.awt.font 1 0 0 0
25 0 4 0 13 0 43
java.awt.geom 1 0 0 40
13 2 0 0 0 0 56
java.awt.im 0 0 0 0
1 0 0 0 1 0 2
java.awt.image 41 0 0 0
21 2 15 0 18 0 97
java.awt.image.renderable 0 0 0 0
12 1 0 0 9 0 22
java.awt.print 0 0 0 0
3 2 0 0 5 0 10
java.beans 0 0 0 0
221 0 0 0 91 0 312
java.beans.beancontext 0 0 0 0
104 0 0 0 14 0 118
java.io 0 0 2 4
41 1 1 0 8 0 57
java.lang 2 0 3 0
71 0 1 1 24 0 102
java.lang.instrument 0 0 0 0
1 0 0 0 0 0 1
java.lang.invoke 5 0 0 0
6 0 0 0 2 0 13
java.lang.management 0 0 0 0
3 0 0 0 1 0 4
java.lang.ref 0 0 0 0
11 0 0 0 7 0 18
java.rmi 0 0 0 0
1 0 0 0 1 0 2
java.rmi.dgc 1 0 0 0
0 0 0 0 0 0 1
java.rmi.server 0 0 0 0
3 0 0 0 1 0 4
java.sql 0 15 12 0
1 0 0 0 0 0 28
java.text 7 0 3 1
99 1 0 0 54 0 165
java.util 1 0 0 1
122 1 30 0 208 2 365
java.util.concurrent 0 0 0 0
74 4 36 0 82 0 196
java.util.concurrent.atomic 1 0 0 0
12 0 0 0 2 0 15
java.util.jar 0 1 4 0
73 1 0 0 37 0 116
java.util.logging 0 0 8 0
13 0 0 0 0 0 21
java.util.prefs 0 0 0 0
7 0 0 0 2 0 9
java.util.regex 0 0 0 4
0 0 0 0 0 0 4
java.util.zip 1 0 7 0
0 0 0 0 0 0 8
(total) 115 16 91 52
1197 20 94 1 795 2 2383
warning: 1497, mandatory_warning: 886
More information about the jdk8-dev
mailing list