diff --git a/classpath/java/nio/ByteBuffer.java b/classpath/java/nio/ByteBuffer.java index 73da8fbc78..47eec8c1dc 100644 --- a/classpath/java/nio/ByteBuffer.java +++ b/classpath/java/nio/ByteBuffer.java @@ -173,6 +173,10 @@ public abstract class ByteBuffer return this; } + public byte get() { + return get(position++); + } + public byte get(int position) { checkGet(position, 1); return doGet(position);