Name: bsC130419 Date: 06/05/2001
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
From java.nio.DirectByteBuffer.java: all the as*Buffer() methods return
a bigEndian buffer even if bigEndian is false.
the second "ByteBufferAsDoubleBufferB(this)));" should be
ByteBufferAsDoubleBufferL(this)));
public DoubleBuffer asDoubleBuffer() {
if (!unaligned && ((base + position()) % (1 << 3) != 0)) {
return (bigEndian
? (DoubleBuffer)(new ByteBufferAsDoubleBufferB(this))
: (DoubleBuffer)(new ByteBufferAsDoubleBufferB(this)));
} else {
return (nativeByteOrder
? (DoubleBuffer)(new DirectDoubleBufferU(this))
: (DoubleBuffer)(new DirectDoubleBufferS(this)));
}
}
(Review ID: 125874)
======================================================================