java.nio.Buffer: slice, duplicate, compact
Alan Bateman
Alan.Bateman at oracle.com
Thu Feb 25 08:44:11 UTC 2016
On 24/02/2016 21:01, Pavel Rappo wrote:
> Hi,
>
> Are there any reasons why those methods cannot be defined in java.nio.Buffer and
> overridden in its descendants covariantly? Those operations seem to be
> completely type type-agnostic.
>
java.nio was introduced in Java SE 1.4 and so pre-dates covariant return
types. Some work has been done on this but there are other
opportunities. One of these days ...
-Alan
More information about the nio-dev
mailing list