5029431: (bf) Add absolute bulk put and get methods

Chris Hegarty chris.hegarty at oracle.com
Thu Feb 14 12:59:54 UTC 2019

> On 14 Feb 2019, at 12:05, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> The other observation is that buffer overflow/underflow can only occur with methods that adjust the buffer position. It might be beneficial to put something to that effect in the descriptions of these exceptions 

It is already there, the exception's class-description says
"... relative get/put operation ...", and relative operations are
specified to increment the buffer's position. What we are/were
discussing is/was possibly removing this relative-only operations

All current usage that I can find has no regard to whether, or not,
there is adjustment to the position. The only factors regarding the
raising of the exception are the current position, the limit, and the
given, or implicit, length argument.


More information about the nio-dev mailing list