JDK-8062376 : Suppress cast warnings when using NIO buffers
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-10-29
  • Updated: 2015-06-04
  • Resolved: 2014-10-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b38Fixed
Related Reports
Relates :  
Relates :  
Description
The fix for JDK-4774077 introduces covariant return types in the NIO buffer hierarchy.

This will introduce 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.

Comments
Added noreg-cleanup
30-10-2014