[kaffe] CVS kaffe (dalibor): Small fix for Enhydra
Kaffe CVS
cvs-commits at kaffe.org
Sun Dec 7 10:24:09 PST 2003
PatchSet 4198
Date: 2003/12/07 18:21:10
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Small fix for Enhydra
2003-12-07 Dalibor Topic <robilad at kaffe.org>
* libraries/javalib/java/net/Socket.java
(close): Allow a Socket to be closed
multiple times without throwing an exception.
Members:
ChangeLog:1.1789->1.1790
libraries/javalib/java/net/Socket.java:1.28->1.29
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1789 kaffe/ChangeLog:1.1790
--- kaffe/ChangeLog:1.1789 Thu Dec 4 15:07:14 2003
+++ kaffe/ChangeLog Sun Dec 7 18:21:10 2003
@@ -1,3 +1,9 @@
+2003-12-07 Dalibor Topic <robilad at kaffe.org>
+
+ * libraries/javalib/java/net/Socket.java
+ (close): Allow a Socket to be closed
+ multiple times without throwing an exception.
+
2003-12-04 Dalibor Topic <robilad at kaffe.org>
Fixed a problem in FOP 0.25.4.
Index: kaffe/libraries/javalib/java/net/Socket.java
diff -u kaffe/libraries/javalib/java/net/Socket.java:1.28 kaffe/libraries/javalib/java/net/Socket.java:1.29
--- kaffe/libraries/javalib/java/net/Socket.java:1.28 Wed Dec 3 23:18:04 2003
+++ kaffe/libraries/javalib/java/net/Socket.java Sun Dec 7 18:21:12 2003
@@ -1003,7 +1003,7 @@
public synchronized void close () throws IOException
{
if (isClosed())
- throw new SocketException("socket is closed");
+ return;
getImpl().close();
impl = null;
More information about the kaffe
mailing list