This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] [MinGW]: Reset/Ignore Thread Interruption for Plain[Datagram]SocketImpl
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: Bryce McKinlay <bryce at mckinlay dot net dot nz>, Andrew Haley <aph at redhat dot com>
- Cc: GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: Mon, 15 Dec 2003 09:02:49 -0600
- Subject: Re: [PATCH] [MinGW]: Reset/Ignore Thread Interruption for Plain[Datagram]SocketImpl
- Reply-to: gnustuff at thisiscool dot com
Hi Andrew,
> > Surely that behaviour is a bug - it directly contradicts the spec for
> > Selector....
> >
>This is more of a philosophical issue than a technical one.
>
>My take on it is:
>
>Where both gcj and the JDK conform to the spec, but behave
>differently, we change gcj to match the JDK.
>
>Where the JDK doesn't conform to the spec, but gcj does, we leave gcj
>well alone.
>
>This might be problematic where some applications rely on incorrect
>behaviour. When that happens, we have to make our decision on a
>case-by-case basis.
Thanks for clarifying this. In this case, however, Sun's behavior on
Win32 <i>does</i> contradict the spec, since I can't reliably test the
thread's interrupted status on Win32.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/