[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] java.nio.ByteBuffer#compact() does not set position and lim
From: |
kaz |
Subject: |
[cp-patches] java.nio.ByteBuffer#compact() does not set position and limit |
Date: |
30 Dec 2004 00:19:18 -0000 |
User-agent: |
SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.3.50 (i386-unknown-freebsd5.3) MULE/5.0 (SAKAKI) |
With reference to the report in the kaffe mailing list
http://www.kaffe.org/pipermail/kaffe/2004-December/100961.html
I suggest the following patch:
ChangeLog enty:
2004-12-30 Ito Kazumitsu <address@hidden>
* java/nio/ByteBufferImpl.java (compact):
Set position and limit even if no bytes were moved.
#####
--- java/nio/ByteBufferImpl.java.orig Thu Dec 30 08:47:51 2004
+++ java/nio/ByteBufferImpl.java Thu Dec 30 08:57:35 2004
@@ -122,6 +122,11 @@
position(count);
limit(capacity());
}
+ else
+ {
+ position(limit());
+ limit(capacity());
+ }
return this;
}
#####
- [cp-patches] java.nio.ByteBuffer#compact() does not set position and limit,
kaz <=