Patch: Fix last patch and convert throws

Tom Tromey tromey@cygnus.com
Tue Sep 5 15:02:00 GMT 2000


Bryce> This patch fixes the error in my last patch, and also converts
Bryce> all the JvThrow() calls in java.net to throw statements, for
Bryce> consistency.

Bryce> -  if (::setsockopt (fnum, level, opname, ptr, len) == 0)
Bryce> +  if (::setsockopt (fnum, level, opname, ptr, len) != 0)
Bryce>      return;
Bryce> +
Bryce> +  char* strerr = strerror (errno);
Bryce> +  throw new java::io::IOException (JvNewStringUTF (strerr));

I think this hunk is wrong.
`setsockopt' returns 0 if it succeeds.

Tom


More information about the Java-patches mailing list