gcc/libjava/java
Per Bothner 35d0b14df6 ByteBuffer.java (endian): Make non-private so other java.nio classes can inherit it.
* java/nio/ByteBuffer.java (endian):  Make non-private so other
	java.nio classes can inherit it.
	(<init>):  Don't bother clearing array_offset.
	* java/nio/ByteBuffer.java (allocate):  Re-implement using wrap.
	* java/nio/ByteBuffer.java (get(byte[],int,int)):  Check underflow.
	Remove redundant test.

	* java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer,
	asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer):
	Use new XxxViewBufferImpl constructors.
	* java/nio/MappedByteBufferImpl.java:  Likewise.
	* java/nio/DirectByteBufferImpl.java:  Likewise.

	* java/nio/ByteBufferImpl.java:  Remove one constructor.
	Inline super in remaining constructor.
	* java/nio/ByteBuffer.java:  Remove unused constructor.

	* java/nio/ByteBufferImpl.java (shiftDown):  New optimized method.

	* java/nio/ByteBufferImpl.java (get, put):  Add array_offset.
	* java/nio/DirectByteBufferImpl.java (owner):  New field.
	(offset):  Remove unused field.
	(<init>):  Modify one and add another constructor.  Change callers.
	(allocateDirect):  Removed - not used.
	(getImpl, putImpl):  Make static and pass address explicitly,
	to make them useful for MappedByteBufferImpl.
	(get, put):  Check for underflow.  Modify for new getImpl.
	(getImpl):  New native method where target is array.
	(get(byte[],int,int)):  Use the above.
	(adjustAddress):  New static native method.
	(slice, duplicate, asReadOnly):  New implementations.
	* java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown,
	adjustAddress):  New or updated native methods.

From-SVN: r77919
2004-02-16 12:00:33 -08:00
..
applet
awt 2004-02-10 David Jee <djee@redhat.com> 2004-02-10 18:57:22 +00:00
beans BeanDescriptor.java, [...]: Explicitely import used classes. 2003-12-04 19:36:13 +00:00
io ObjectInputStream.java (readClassDescriptor): Avoid the overflow of fieldmapping. 2004-02-15 11:53:45 +00:00
lang 2004-02-05 Michael Koch <konqueror@gmx.de> 2004-02-05 18:20:46 +00:00
math Font.java, [...]: Removed some redundant obj == null checks. 2003-11-11 12:22:20 +00:00
net 2004-02-11 Michael Koch <konqueror@gmx.de> 2004-02-11 18:22:09 +00:00
nio ByteBuffer.java (endian): Make non-private so other java.nio classes can inherit it. 2004-02-16 12:00:33 -08:00
rmi Naming.java (lookup): Check if the first character of the filename returned by URL.getFile() is a '/'... 2003-12-26 23:23:55 +00:00
security Security.java: Don't use &nbsp; in the api doc. 2003-12-02 17:31:46 +00:00
sql Font.java, [...]: Removed some redundant obj == null checks. 2003-11-11 12:22:20 +00:00
text 2004-01-23 Michael Koch <konqueror@gmx.de> 2004-01-23 15:15:31 +00:00
util Deflater.java, [...]: Reformated and javadoc comments merged from classpath. 2004-02-05 16:04:28 +00:00