Wrong information in the java.nio.ByteBuffer document

Alan Bateman Alan.Bateman at oracle.com
Sun Oct 9 16:10:46 UTC 2022


On 28/06/2022 20:35, Kerem Salihoğlu wrote:
> In the java.nio.ByteBuffer document, there is an example about floats
>
>  float  getFloat()
>  float  getFloat(int index)
>   void  putFloat(float f)
>   void  putFloat(int index, float f)
>
> which says putFloat methods are void but this is wrong, they 
> return ByteBuffer itself.
>
This mail was stuck, awaiting moderation as it was sent from a mail 
account that is not subscribed to the list. In any case, thank you for 
the report, this is an error in the docs. I've created JDK-8295025 [1] 
to track  it.

-Alan

[1] https://bugs.openjdk.org/browse/JDK-8295025



More information about the nio-dev mailing list