From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
* java/io/InputStreamReader.java (ready, read): Throw IOException
if stream has been closed.
From-SVN: r39553
+2001-02-08 Tom Tromey <tromey@redhat.com>
+
+ From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
+ * java/io/InputStreamReader.java (ready, read): Throw IOException
+ if stream has been closed.
+
2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
* README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
-/* Copyright (C) 1998, 1999 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2001 Free Software Foundation
This file is part of libgcj.
{
synchronized (lock)
{
+ if (in == null)
+ throw new IOException("Stream closed");
+
if (wpos < wcount)
return true;
if (work == null)
{
synchronized (lock)
{
+ if (in == null)
+ throw new IOException("Stream closed");
+
int wavail = wcount - wpos;
if (wavail > 0)
{
{
synchronized (lock)
{
+ if (in == null)
+ throw new IOException("Stream closed");
+
int wavail = wcount - wpos;
if (wavail > 0)
return work[wpos++];