Hi everyone, SocketInputStream.read() contains the following code:
if (bytes_read != -1)
return((int)buf[0]);
This is incorrect, as it promotes the signed byte to an int. The correct
code is:
if (bytes_read != -1)
return(buf[0] & 0xff);
Regards,
Jeroen
_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

