2003-06-14 Michael Koch <konqueror@gmx.de>
* java/io/BufferedReader.java,
java/io/FileOutputStream.java:
New versions from classpath.
From-SVN: r67932
+2003-06-14 Michael Koch <konqueror@gmx.de>
+
+ * java/io/BufferedReader.java,
+ java/io/FileOutputStream.java:
+ New versions from classpath.
+
2003-06-12 Andrew Haley <aph@redhat.com>
* prims.cc (catch_segv): Create exception in handler.
*/
public void mark(int readLimit) throws IOException
{
+ if (readLimit < 0)
+ throw new IllegalArgumentException();
+
synchronized (lock)
{
checkStatus();
if (s != null)
s.checkWrite(path);
fd = new FileDescriptor (path, (append
- ? FileDescriptor.APPEND
+ ? FileDescriptor.WRITE
+ | FileDescriptor.APPEND
: FileDescriptor.WRITE));
}