JDK-6733145 : (bf) CharBuffer.subSequence can be updated to take advantage of covariant returns
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-08-04
  • Updated: 2017-05-16
  • Resolved: 2011-05-18
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 b37Fixed
Related Reports
Relates :  
Description
It would be desirable to retrofit CharBuffer to take advantage of covariant returns. Specifically, CharBuffer implements CharSequence and the subSequence method can be safely changed to return the more specific type, see Martin's proposal at:
  http://mail.openjdk.java.net/pipermail/core-libs-dev/2008-July/000596.html

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/tl/jdk/rev/12f5110538d3
10-09-2008

EVALUATION As the buffer classes cannot be extended outside of the buffer package it means we can retrofit CharBuffer to take advantage of covariant returns. The more general RFE tracking the request to make use of covariant returns is 4774077.
04-08-2008