2003-05-19 Michael Koch <konqueror@gmx.de>

* gnu/java/nio/ByteBufferImpl.java
	(putLong): Fixed conversion to bytes.
	(putDouble): Fixed conversion to bytes.
	* gnu/java/nio/DirectByteBufferImpl.java
	(putLong): Fixed conversion to bytes.
	(putDouble): Fixed conversion to bytes.
	* gnu/java/nio/FileLockImpl.java
	(isValid): Reformatted.
	* java/nio/Buffer.java
	(Buffer): Fixed off-by-one bug in handling mark.
	* java/nio/ByteBuffer.java:
	Added newline.
	* java/nio/CharBuffer.java
	(toString): Don't use relative get to get string data.

From-SVN: r66946
This commit is contained in:
Michael Koch 2003-05-19 06:59:23 +00:00 committed by Michael Koch
parent 307b599c91
commit 10832fce7c
7 changed files with 87 additions and 68 deletions

View file

@ -62,7 +62,8 @@ public class FileLockImpl extends FileLock
public boolean isValid ()
{
return (released || !channel.isOpen ());
return (released
|| !channel ().isOpen ());
}
private native void releaseImpl () throws IOException;