From e7d51b643550d187634e7984d95b096daf249f7a Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Sat, 25 Oct 2014 12:40:23 +0400 Subject: [PATCH] Add some tests for ByteBuffer --- .../teavm/classlib/java/nio/TByteBuffer.java | 6 +- .../classlib/java/nio/ByteBufferTest.java | 92 +++++++++++++++++++ 2 files changed, 95 insertions(+), 3 deletions(-) diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/java/nio/TByteBuffer.java b/teavm-classlib/src/main/java/org/teavm/classlib/java/nio/TByteBuffer.java index 4df336755..164c56cbe 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/java/nio/TByteBuffer.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/java/nio/TByteBuffer.java @@ -56,9 +56,6 @@ public abstract class TByteBuffer extends TBuffer implements TComparable= dst.length) { throw new IndexOutOfBoundsException("Offset " + offset + " is outside of range [0;" + dst.length + ")"); } @@ -66,6 +63,9 @@ public abstract class TByteBuffer extends TBuffer implements TComparable