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

Brian Burkhalter brian.burkhalter at oracle.com
Tue Oct 16 21:33:45 UTC 2018

Hi Roger,

> On Oct 16, 2018, at 2:01 PM, Roger Riggs <Roger.Riggs at oracle.com> wrote:
> Looks like the right shape overall.


> I would agree that IOOBE is the right exception for all the parameter consistency checks.
> But with the different checks, the bare checkBounds method's IOOBE exception with
> no message will be very uninformative.
> Take a look the jdk.internal.util.Preconditions.checkFrom* methods.
> At least that would provide a consistent set of exception message formats
> and were designed to be inlined and efficient in the checks.

Will do. I think these are invoked by the Objects.checkFrom … methods?

> The other options for 3), 4), and 5) is useful convenience methods.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20181016/c7aca29d/attachment-0001.html>

More information about the nio-dev mailing list