[9] RFR of 8065556: (bf) Buffer.position and other methods should include detail in IAE
Alan Bateman
Alan.Bateman at oracle.com
Thu Apr 23 16:38:09 UTC 2015
On 21/04/2015 23:22, Brian Burkhalter wrote:
> Another iteration of this patch has been posted at
>
> http://cr.openjdk.java.net/~bpb/8065556/webrev.04/
> <http://cr.openjdk.java.net/%7Ebpb/8065556/webrev.04/>
>
> to be reviewed at your convenience.
>
> Summary:
>
> 1) Exception creation methods renamed for consistency to
> createXYZException().
> 2) Methods in #1 still create and return an IAE but leave throwing it
> to the caller.
> 3) Static methods in #1 moved up below constructors for style consistency.
> 4) Line lengths adjusted in tests to be within conventional limits.
>
The approach looks okay to me. It would have been interesting to have
done micro benchmarks to see it matches Martin's observation/bug as that
was news to me.
In Buffer then it would be nice to reduce the method names a bit so that
the declarations don't spill over two lines. I realize it's just nit
picking but it's good to keep the code consistent when you can.
The test update looks okay now.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20150423/44232cc6/attachment-0001.html>
More information about the nio-dev
mailing list