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

n-roeser at gmx.net n-roeser at gmx.net
Fri Sep 30 16:51:25 PDT 2005


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).

-- 
Nico

GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PlainSocketImpl.java-SO_REUSEADDR.patch
Type: application/octet-stream
Size: 383 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20051001/cc293985/attachment-0002.obj 


More information about the kaffe mailing list