[kaffe] Bug when using getReuseAddress() on a socket

jserv at linux2.cc.ntu.edu.tw jserv at linux2.cc.ntu.edu.tw
Fri Sep 30 19:49:53 PDT 2005


On Sat, Oct 01, 2005 at 01:51:25AM +0200, n-roeser at gmx.net wrote:
> Hello,
> 
> kaffe-1.1.6 has a bug in
> libraries/javalib/gnu/java/net/PlainSocketImpl.java:
> 
> 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.
> 
> Patch attached, hope it helps. I just tested it here with a
> ServerSocket.getReuseAddress() and it looks good (no more exceptions
> signalling an internal error).

Hi Nico,

  Excellent! I encountered the similar exceptions before, but I forgot
to "dig". Your patch was checked in. Thanks.

Sincerely,
Jim Huang




More information about the kaffe mailing list