Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
9
-
b120
Description
At present, 'slice()' and 'duplicate()' are defined separately in all subtypes of java.nio.Buffer. Hoisting them up to the base class (at the same time overriding covariantly in each of the subtypes) would allow more code reuse when working with buffers.
Attachments
Issue Links
- relates to
-
JDK-8156931 java.nio.Buffer tests cleanup
- Closed
-
JDK-8040819 (bf) Generify java.nio.Buffer
- Resolved
-
JDK-4774077 Use covariant return types in the NIO buffer hierarchy
- Closed