Loading... (original) (raw)
- Type:
Enhancement
- Resolution: Fixed
- Priority:
P4
- Fix Version/s: 9
- Affects Version/s: None
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
JDK-8084175 Use covariant return types in the NIO buffer hierarchy
- Resolved
duplicates
JDK-5082736 Subclasses of java.nio.Buffer should use covariant return types
- Closed
relates to
JDK-8062385 Remove @SuppressWarnings("cast") and casts for NIO related usages when JDK 9 becomes the bootstrap JDK
- Resolved
JDK-8062376 Suppress cast warnings when using NIO buffers
- Closed
JDK-8150785 (bf) Hoist slice and duplicate methods up to java.nio.Buffer
- Resolved
JDK-6451131 (bf) Generify Buffer to enhance chaining of flip()
- Closed
JDK-6733145 (bf) CharBuffer.subSequence can be updated to take advantage of covariant returns
- Closed
JDK-8066380 VM Option wasn't used when first jre is disable and second jre is enable
- Closed
JDK-8040819 (bf) Generify java.nio.Buffer
- Closed
(4 relates to)