diff options
Diffstat (limited to 'libjava/classpath/java/nio/ShortBuffer.java')
-rw-r--r-- | libjava/classpath/java/nio/ShortBuffer.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/libjava/classpath/java/nio/ShortBuffer.java b/libjava/classpath/java/nio/ShortBuffer.java index 33e458a4b1e..f15c0635577 100644 --- a/libjava/classpath/java/nio/ShortBuffer.java +++ b/libjava/classpath/java/nio/ShortBuffer.java @@ -38,19 +38,25 @@ exception statement from your version. */ package java.nio; +// GCJ LOCAL: Use RawData instead of gnu.classpath.Pointer +import gnu.gcj.RawData; + /** * @since 1.4 */ public abstract class ShortBuffer extends Buffer implements Comparable<ShortBuffer> { - int array_offset; - short[] backing_buffer; + final int array_offset; + final short[] backing_buffer; - ShortBuffer (int capacity, int limit, int position, int mark) + ShortBuffer (int capacity, int limit, int position, + int mark, RawData address, short[] backing_buffer, + int array_offset) { - super (capacity, limit, position, mark); - array_offset = 0; + super (capacity, limit, position, mark, address); + this.backing_buffer = backing_buffer; + this.array_offset = array_offset; } /** |