Relates :
|
|
Relates :
|
|
Relates :
|
The fix for JDK-4774077 introduced covariant return types in the NIO buffer hierarchy. As a consequence that fix introduced redundant casts (and because of -Werror a build failure) in langtools when compiling with JDK 9, but the casts are still required when bootstrapping with JDK 8. The fix for JDK-8062376 added @SuppressWarnings("cast") annotations to ensure no build failure. When JDK 9 becomes the default bootstrap JDK the @SuppressWarnings("cast") and casts can be removed.
|