aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu
diff options
context:
space:
mode:
authorJulian Scheid <julian@sektor37.de>2005-02-16 23:33:02 +0000
committerMark Wielaard <mark@gcc.gnu.org>2005-02-16 23:33:02 +0000
commitcc51f4fb7f59ed99a3cf745760cc81c9cc2cccd9 (patch)
tree6ab53bdad7456569fc144984be6e97db333ac0af /libjava/gnu
parent2f6363f95e3124b5fe08279eeebe47c4a03dad71 (diff)
downloadgcc-cc51f4fb7f59ed99a3cf745760cc81c9cc2cccd9.zip
gcc-cc51f4fb7f59ed99a3cf745760cc81c9cc2cccd9.tar.gz
gcc-cc51f4fb7f59ed99a3cf745760cc81c9cc2cccd9.tar.bz2
UTF_8.java (decodeLoop): Set inPos to in.position().
2005-02-16 Julian Scheid <julian@sektor37.de> * gnu/java/nio/charset/UTF_8.java (decodeLoop): Set inPos to in.position(). (encodeLoop): Likewise. From-SVN: r95125
Diffstat (limited to 'libjava/gnu')
-rw-r--r--libjava/gnu/java/nio/charset/UTF_8.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/gnu/java/nio/charset/UTF_8.java b/libjava/gnu/java/nio/charset/UTF_8.java
index c271436..87df644 100644
--- a/libjava/gnu/java/nio/charset/UTF_8.java
+++ b/libjava/gnu/java/nio/charset/UTF_8.java
@@ -101,7 +101,7 @@ final class UTF_8 extends Charset
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out)
{
// TODO: Optimize this in the case in.hasArray() / out.hasArray()
- int inPos = 0;
+ int inPos = in.position();
try
{
while (in.hasRemaining ())
@@ -196,7 +196,7 @@ final class UTF_8 extends Charset
protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out)
{
- int inPos = 0;
+ int inPos = in.position();
try
{
// TODO: Optimize this in the case in.hasArray() / out.hasArray()