diff options
Diffstat (limited to 'libjava/gnu/java/nio/FileChannelImpl.java')
| -rw-r--r-- | libjava/gnu/java/nio/FileChannelImpl.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libjava/gnu/java/nio/FileChannelImpl.java b/libjava/gnu/java/nio/FileChannelImpl.java index 392f479172c..97929ca786a 100644 --- a/libjava/gnu/java/nio/FileChannelImpl.java +++ b/libjava/gnu/java/nio/FileChannelImpl.java @@ -46,6 +46,7 @@ import java.io.IOException; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.MappedByteBuffer; +import java.nio.MappedByteBufferImpl; import java.nio.channels.ClosedChannelException; import java.nio.channels.FileChannel; import java.nio.channels.FileLock; @@ -260,7 +261,7 @@ public class FileChannelImpl extends FileChannel int cmode = mode.m; map_address = nio_mmap_file (position, size, cmode); length = (int) size; - buf = new MappedByteFileBuffer (this); + buf = new MappedByteBufferImpl (this); return buf; } @@ -271,7 +272,7 @@ public class FileChannelImpl extends FileChannel FileChannelImpl ch = new FileChannelImpl (); ch.map_address = map_address; ch.length = (int) length; - ch.buf = new MappedByteFileBuffer (ch); + ch.buf = new MappedByteBufferImpl (ch); return ch.buf; } |
