-
Bug
-
Resolution: Fixed
-
P3
-
7
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8213853 | openjdk7u | Chris Hegarty | P3 | Resolved | Fixed | master |
The changes to remove warnings from net, nio, and security code missed a few raw types. This was not spotted at the time as the compler was not generating raw type warnings for anonymous inner classes. It does now, see CR 7090499.
This is not an issue when doing a full build because the classes are compiled implicitly, but when re-building (incrementally building following a clobber in a specific package) then JAVAC_MAX_WARNINGS and JAVAC_WARNINGS_FATAL are set by the appropriate makefile and so the warning is fatal.
Below are the nio warnings (similar issues in net and security):
./../../src/share/classes/java/nio/charset/Charset.java:438: warning: [rawtypes] found raw type: Class
Class epc
^
missing type arguments for generic class Class<T>
where T is a type-variable:
T extends Object declared in class Class
error: warnings found and -Werror specified
../../../src/share/classes/sun/nio/ch/Util.java:366: warning: [rawtypes] found raw type: Class
new Class[] { int.class,
^
missing type arguments for generic class Class<T>
where T is a type-variable:
T extends Object declared in class Class
../../../src/share/classes/sun/nio/ch/Util.java:411: warning: [rawtypes] found raw type: Class
new Class[] { int.class,
^
missing type arguments for generic class Class<T>
where T is a type-variable:
T extends Object declared in class Class
1 error
3 warnings
make381: *** [.compile.classlist] Error 1
This is not an issue when doing a full build because the classes are compiled implicitly, but when re-building (incrementally building following a clobber in a specific package) then JAVAC_MAX_WARNINGS and JAVAC_WARNINGS_FATAL are set by the appropriate makefile and so the warning is fatal.
Below are the nio warnings (similar issues in net and security):
./../../src/share/classes/java/nio/charset/Charset.java:438: warning: [rawtypes] found raw type: Class
Class epc
^
missing type arguments for generic class Class<T>
where T is a type-variable:
T extends Object declared in class Class
error: warnings found and -Werror specified
../../../src/share/classes/sun/nio/ch/Util.java:366: warning: [rawtypes] found raw type: Class
new Class[] { int.class,
^
missing type arguments for generic class Class<T>
where T is a type-variable:
T extends Object declared in class Class
../../../src/share/classes/sun/nio/ch/Util.java:411: warning: [rawtypes] found raw type: Class
new Class[] { int.class,
^
missing type arguments for generic class Class<T>
where T is a type-variable:
T extends Object declared in class Class
1 error
3 warnings
make381: *** [.compile.classlist] Error 1
- backported by
-
JDK-8213853 rawtype warnings in several net, nio and security source files
-
- Resolved
-
- relates to
-
JDK-7068616 NIO libraries do not build with javac -Xlint:all,-deprecation -Werror
-
- Resolved
-