JDK-6863667 : (ch) Several tests in java/nio/channels/* need to be updated after 6638712
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-07-23
  • Updated: 2011-01-19
  • Resolved: 2009-11-19
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 7
7 b68Fixed
Related Reports
Relates :  
Description
see comments

Comments
EVALUATION 6638712 has updated the type-inference in javac. As pointed out by Maurizio, when using contravariant arguments, we should not expect the compiler to infer from the actual arguments as usually the compiler will infer Object as is in the case here. For these tests we can provide the type variables explicitly or simply case the nulls to Void.
23-07-2009

EVALUATION There were no changes to this API, implementation, or unit tests in b64. I notice if I compile using tools.jar from the previous build then everything compiles correctly.
23-07-2009