This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [MinGW]: Reset/Ignore Thread Interruption for Plain[Datagram]SocketImpl


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/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]