JDK-4774077 : Use covariant return types in the NIO buffer hierarchy
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_8,windows_xp
  • CPU: generic,x86
  • Submitted: 2002-11-05
  • Updated: 2017-05-16
  • 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
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
ByteBuffer.flip() would be much more useful if it returned ByteBuffer
instead of Buffer.  Covariance (expected in 1.5) makes this possible.
There are many other places where this applies.

Comments
See thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-April/026458.html and patch: http://cr.openjdk.java.net/~rwarburton/buffer-overrides-1/
14-07-2014

EVALUATION Contribution forum : https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?forumID=1463&messageID=15541
19-09-2006

EVALUATION Yes, we'll do this in Tiger. -- ###@###.### 2002/11/13
11-10-0179