[PATCH] [POSIX]: SocketTimeoutException for PlainDatagramSocketImpl + Minor Case Changes

Mohan Embar gnustuff@thisiscool.com
Sun Dec 14 04:10:00 GMT 2003


Hi Bryce,

>> This patch has PlainDatagramSocketImpl throw a
>> SocketTimeoutException instead of an InterruptedIOException
>> and has minor case changes for Plain[Datagram]SocketImpl
>> to make the output of the test attached to this post:
>>
>> http://gcc.gnu.org/ml/java-patches/2003-q4/msg00736.html
>>
>> ...diff more cleanly between Sun JRE 1.4.1 on Linux and
>> i686-pc-linux-gnu-gcj.
>
>Note that, in general, it doesn't matter if our exception messages do 
>not exactly match those of the JDK - they arn't part of the spec. That 
>said, I guess capitalising them does make them look better!

I agree. There are places in the MinGW port where I purposely let
the exception text diverge from Sun's JRE. This was more of a
"while-I'm-in-here" kind of a thing to make the diff smoother, the
main point being to replace the InterruptedIOException with the
SocketTimeoutException....

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/




More information about the Java-patches mailing list