2005-10-20 jrandom

* Workaround a bug in GCJ's Calendar implementation
    * Propery throw an exception in the streaming lib if we try to write to a
      closed stream.  This will hopefully help clear some I2Phex bugs (thanks
      GregorK!)
This commit is contained in:
jrandom
2005-10-20 08:56:39 +00:00
committed by zzz
parent aa5f1cb18d
commit ea22c73a73
5 changed files with 19 additions and 6 deletions

View File

@@ -77,6 +77,7 @@ public class MessageOutputStream extends OutputStream {
}
public void write(byte b[], int off, int len) throws IOException {
if (_closed) throw new IOException("Already closed");
if (_log.shouldLog(Log.DEBUG))
_log.debug("write(b[], " + off + ", " + len + ") ");
int cur = off;