7000913: (bf) CharBuffer.wrap, slice, position, slice leads to CharBuffer with incorrect offset

Rémi Forax forax at univ-mlv.fr
Thu Nov 18 02:43:56 PST 2010

  Le 18/11/2010 11:35, Alan Bateman a écrit :
> This one came up on core-libs-dev yesterday [1]. If a CharBuffer is 
> created by wrapping a CharSequence, the resulting buffer is sliced, 
> and the slice further sliced when the position is non-zero, then the 
> resulting CharBuffer doesn't have the correct offset. I'm not sure if 
> John found this by inspection or ran into the issue. Here's the webrev 
> with the changes, it's mostly an update to an existing test as this 
> case seems to have been missed:
>  http://cr.openjdk.java.net/~alanb/7000913/webrev/
> Thanks,
> Alan.
> [1] 
> http://mail.openjdk.java.net/pipermail/core-libs-dev/2010-November/005243.html

Looks good.


More information about the nio-dev mailing list