Loading... (original) (raw)

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.

backported by

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8084175 Use covariant return types in the NIO buffer hierarchy

duplicates

Enhancement - null JDK-5082736 Subclasses of java.nio.Buffer should use covariant return types

relates to

Bug - A problem which impairs or prevents the functions of the product. JDK-8062385 Remove @SuppressWarnings("cast") and casts for NIO related usages when JDK 9 becomes the bootstrap JDK

Bug - A problem which impairs or prevents the functions of the product. JDK-8062376 Suppress cast warnings when using NIO buffers

Enhancement - null JDK-8150785 (bf) Hoist slice and duplicate methods up to java.nio.Buffer

Enhancement - null JDK-6451131 (bf) Generify Buffer to enhance chaining of flip()

Enhancement - null JDK-6733145 (bf) CharBuffer.subSequence can be updated to take advantage of covariant returns

Bug - A problem which impairs or prevents the functions of the product. JDK-8066380 VM Option wasn't used when first jre is disable and second jre is enable

Enhancement - null JDK-8040819 (bf) Generify java.nio.Buffer

(4 relates to)