RFR for bug JDK-8030690 TEST_BUG java/nio/Buffer/Chars.java fails intermittently

Alan Bateman Alan.Bateman at oracle.com
Fri Dec 20 02:01:45 PST 2013

On 20/12/2013 07:17, Eric Wang wrote:
> Hi Alan,
> Please review the webrev 
> http://cr.openjdk.java.net/~ewang/JDK-8030690/webrev.00/ 
> <http://cr.openjdk.java.net/%7Eewang/JDK-8030690/webrev.00/>, if it 
> looks OK, could you help to be the sponsor to check in?
> Here is explanation why a slice has 1 capacity:
> In the addCase(...) method, it calls randomize(sb) which calls 
> randomizeRange(sb), it may set a CharBuffer position equals to limit - 
> 1, so the next call of sb.slice() returns a CharBuffer which capacity 
> is 1.
Ah yes, it's the subsequent slice that can lead to this.

I'll push this for you now to jdk9/dev. Thanks for uncovering/fixing 
this one.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20131220/5e4f0713/attachment.html 

More information about the nio-dev mailing list