gcc/libjava/java/nio
Michael Koch d2ba8a75ef 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
2005-01-07 11:32:07 +00:00
..
channels NIOServerSocket.java: Added email to @author tag. 2004-11-24 10:44:18 +00:00
charset URLClassLoader.java (URLClassLoader): Now package-private. 2004-11-06 23:22:05 +00:00
Buffer.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
BufferOverflowException.java
BufferUnderflowException.java
ByteBuffer.java 2004-10-22 Michael Koch <konqueror@gmx.de> 2004-10-22 17:14:29 +00:00
ByteBufferHelper.java 2004-10-18 Sven de Marothy <sven@physto.se> 2004-10-18 14:41:45 +00:00
ByteBufferImpl.java Buffer.java, [...]: Fixed javadocs all over. 2004-07-09 13:40:29 +00:00
ByteOrder.java BufferedReader.java, [...]: Fixed javadocs all over. 2004-11-16 11:30:14 +00:00
CharBuffer.java 2004-10-22 Michael Koch <konqueror@gmx.de> 2004-10-22 17:14:29 +00:00
CharBufferImpl.java Buffer.java, [...]: Fixed javadocs all over. 2004-07-09 13:40:29 +00:00
CharViewBufferImpl.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
DirectByteBufferImpl.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
DoubleBuffer.java 2004-10-22 Michael Koch <konqueror@gmx.de> 2004-10-22 17:14:29 +00:00
DoubleBufferImpl.java Buffer.java, [...]: Fixed javadocs all over. 2004-07-09 13:40:29 +00:00
DoubleViewBufferImpl.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
FloatBuffer.java 2004-10-22 Michael Koch <konqueror@gmx.de> 2004-10-22 17:14:29 +00:00
FloatBufferImpl.java Buffer.java, [...]: Fixed javadocs all over. 2004-07-09 13:40:29 +00:00
FloatViewBufferImpl.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
IntBuffer.java 2004-10-22 Michael Koch <konqueror@gmx.de> 2004-10-22 17:14:29 +00:00
IntBufferImpl.java Buffer.java, [...]: Fixed javadocs all over. 2004-07-09 13:40:29 +00:00
IntViewBufferImpl.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
InvalidMarkException.java
LongBuffer.java 2004-10-22 Michael Koch <konqueror@gmx.de> 2004-10-22 17:14:29 +00:00
LongBufferImpl.java Buffer.java, [...]: Fixed javadocs all over. 2004-07-09 13:40:29 +00:00
LongViewBufferImpl.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
MappedByteBuffer.java UTF_16.java, [...]: Cleanup. 2004-10-16 18:06:03 +00:00
MappedByteBufferImpl.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
natDirectByteBufferImpl.cc NIOServerSocket.java: Added email to @author tag. 2004-11-24 10:44:18 +00:00
ReadOnlyBufferException.java
ShortBuffer.java 2004-10-22 Michael Koch <konqueror@gmx.de> 2004-10-22 17:14:29 +00:00
ShortBufferImpl.java Buffer.java, [...]: Fixed javadocs all over. 2004-07-09 13:40:29 +00:00
ShortViewBufferImpl.java re PR libgcj/18115 (JNI nio buffer functions only work with byte buffers) 2005-01-07 11:32:07 +00:00
VMDirectByteBuffer.java NIOServerSocket.java: Added email to @author tag. 2004-11-24 10:44:18 +00:00