[PATCH] java.nio/6593946 ByteBuffer.compact does not clear mark

Keith Seitz keiths at redhat.com
Tue Sep 25 19:48:47 UTC 2007


Hi,

The attached patch should fix the mark problem with ByteBuffer.compact, 
which simply was not following the API specification.

I'm also attaching a simple jtreg testcase for this.

Keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bytebuffer-compact-clear-mark.patch
Type: text/x-patch
Size: 2597 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20070925/79d4eb3d/bytebuffer-compact-clear-mark.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ByteBufferCompactMark.java
Type: text/x-java
Size: 804 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20070925/79d4eb3d/ByteBufferCompactMark.java>


More information about the core-libs-dev mailing list