[kaffe] CVS kaffe (jserv): Fixlet to porper type of PlainSocketImpl.getOption.
Kaffe CVS
cvs-commits at kaffe.org
Fri Sep 30 20:04:44 PDT 2005
PatchSet 6938
Date: 2005/10/01 02:59:48
Author: jserv
Branch: HEAD
Tag: (none)
Log:
Fixlet to porper type of PlainSocketImpl.getOption.
2005-10-01 Jim Huang <jserv at kaffe.org>
* libraries/javalib/gnu/java/net/PlainSocketImpl.java (getOption):
Fixlet. When you use getOption(int) in order to ask it for
SO_REUSEADDR, you get an Integer back which is either 0 or 1. It
should be a Boolean instead, as getReuseAddress() executed on a
socket expects this.
Patched by: Nico R. <n-roeser at gmx.net>
Members:
ChangeLog:1.4460->1.4461
libraries/javalib/gnu/java/net/PlainSocketImpl.java:1.7->1.8
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4460 kaffe/ChangeLog:1.4461
--- kaffe/ChangeLog:1.4460 Sat Oct 1 02:18:46 2005
+++ kaffe/ChangeLog Sat Oct 1 02:59:48 2005
@@ -1,8 +1,17 @@
2005-10-01 Jim Huang <jserv at kaffe.org>
+ * libraries/javalib/gnu/java/net/PlainSocketImpl.java (getOption):
+ Fixlet. When you use getOption(int) in order to ask it for
+ SO_REUSEADDR, you get an Integer back which is either 0 or 1. It
+ should be a Boolean instead, as getReuseAddress() executed on a
+ socket expects this.
+ Patched by: Nico R. <n-roeser at gmx.net>
+
+2005-10-01 Jim Huang <jserv at kaffe.org>
+
* kaffe/kaffevm/stats.c: Fixlet to compilation error when
--with-stats enabled.
- Reported by Pietro Ferrari <pietro.ferrari at gmail.com>.
+ Reported by: Pietro Ferrari <pietro.ferrari at gmail.com>.
2005-09-30 Jim Huang <jserv at kaffe.org>
@@ -53,8 +62,6 @@
kaffe/kaffevm/systems/unix-jthreads/jthread.h,
(jthread_exit_when_done): Removed bad NONRETURNING tag.
-
-
2005-09-24 Guilhem Lavaux <guilhem at kaffe.org>
* kaffe/kaffevm/kaffe-gc/gc-mem.c
Index: kaffe/libraries/javalib/gnu/java/net/PlainSocketImpl.java
diff -u kaffe/libraries/javalib/gnu/java/net/PlainSocketImpl.java:1.7 kaffe/libraries/javalib/gnu/java/net/PlainSocketImpl.java:1.8
--- kaffe/libraries/javalib/gnu/java/net/PlainSocketImpl.java:1.7 Fri May 6 15:24:32 2005
+++ kaffe/libraries/javalib/gnu/java/net/PlainSocketImpl.java Sat Oct 1 02:59:48 2005
@@ -4,6 +4,9 @@
* Copyright (c) 1997, 1998
* Transvirtual Technologies, Inc. All rights reserved.
*
+ * Copyright (c) 2005
+ * Kaffe.org contributors, see ChangeLog for details. All rights reserved.
+ *
* See the file "license.terms" for information on usage and redistribution
* of this file.
*/
@@ -232,8 +235,8 @@
case SO_SNDBUF:
case SO_RCVBUF:
case SO_LINGER:
- case SO_REUSEADDR:
return new Integer(socketGetOption(option));
+ case SO_REUSEADDR:
case TCP_NODELAY:
return new Boolean(socketGetOption(option) != 0);
case SO_TIMEOUT:
More information about the kaffe
mailing list