re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers)
2005-01-07 Michael Koch <konqueror@gmx.de> PR libgcj/18115 * java/nio/Buffer.java (address): New field. * java/nio/DirectByteBufferImpl.java (address): Removed. * java/nio/MappedByteBufferImpl.java (address): Likewise. * java/nio/CharViewBufferImpl.java (CharViewBufferImpl): Explicitly initialize Buffer.address if needed. * java/nio/DoubleViewBufferImpl.java (DoubleViewBufferImpl): Likewise. * java/nio/FloatViewBufferImpl.java (FloatViewBufferImpl): Likewise. * java/nio/IntViewBufferImpl.java (IntViewBufferImpl): Likewise. * java/nio/LongViewBufferImpl.java (LongViewBufferImpl): Likewise. * java/nio/ShortViewBufferImpl.java (ShortViewBufferImpl): Likewise. * jni.cc (_Jv_JNI_GetDirectBufferAddress): Don't assume buffer is a DirectByteBufferImpl object. (_Jv_JNI_GetDirectBufferCapacity): Likewise. * testsuite/libjava.jni/directbuffer.c, testsuite/libjava.jni/directbuffer.java, testsuite/libjava.jni/directbuffer.out, testsuite/libjava.jni/bytebuffer.c, testsuite/libjava.jni/bytebuffer.java, testsuite/libjava.jni/bytebuffer.out: New files. From-SVN: r93046
This commit is contained in:
parent
4600cc1427
commit
d2ba8a75ef
17 changed files with 319 additions and 6 deletions
26
libjava/testsuite/libjava.jni/bytebuffer.out
Normal file
26
libjava/testsuite/libjava.jni/bytebuffer.out
Normal file
|
@ -0,0 +1,26 @@
|
|||
PASS: address of java.nio.ByteBuffer
|
||||
PASS: length of java.nio.ByteBuffer
|
||||
PASS: address of java.nio.CharBuffer
|
||||
PASS: length of java.nio.CharBuffer
|
||||
PASS: address of java.nio.DoubleBuffer
|
||||
PASS: length of java.nio.DoubleBuffer
|
||||
PASS: address of java.nio.FloatBuffer
|
||||
PASS: length of java.nio.FloatBuffer
|
||||
PASS: address of java.nio.IntBuffer
|
||||
PASS: length of java.nio.IntBuffer
|
||||
PASS: address of java.nio.LongBuffer
|
||||
PASS: length of java.nio.LongBuffer
|
||||
PASS: address of java.nio.ShortBuffer
|
||||
PASS: length of java.nio.ShortBuffer
|
||||
PASS: address of java.nio.CharBuffer
|
||||
PASS: length of java.nio.CharBuffer
|
||||
PASS: address of java.nio.DoubleBuffer
|
||||
PASS: length of java.nio.DoubleBuffer
|
||||
PASS: address of java.nio.FloatBuffer
|
||||
PASS: length of java.nio.FloatBuffer
|
||||
PASS: address of java.nio.IntBuffer
|
||||
PASS: length of java.nio.IntBuffer
|
||||
PASS: address of java.nio.LongBuffer
|
||||
PASS: length of java.nio.LongBuffer
|
||||
PASS: address of java.nio.ShortBuffer
|
||||
PASS: length of java.nio.ShortBuffer
|
Loading…
Add table
Add a link
Reference in a new issue