Networking Differences Between JRE & GCJ

Bryce McKinlay bryce@mckinlay.net.nz
Wed Sep 10 05:49:00 GMT 2003


On Sunday, Sep 7, 2003, at 15:18 Pacific/Auckland, Mohan Embar wrote:
> I am in the proceess of writing a test which exercises
> the Sun JRE and GCJ networking classes. I'm not done yet,
> but I've already found a significant difference between
> Sun's JRE and GCJ: I can issue a Thread.interrupt()
> on a blocking socket call with GCJ and the operation
> will interrupt. On Sun's JRE, the operation does
> not interrupt.
>> I've scoured the list and found Bryce's rationale
> for this difference. (He also says that IBM's
> JRE does honor Thread.interrupt().)
>> http://gcc.gnu.org/ml/java/2001-09/msg00108.html
>> Is there anywhere that we document purposeful departures
> between Sun's JRE and GCJ? Bryce's behavior makes
> more sense to me, so unless someone tells me otherwise,
> I'm assuming I should be doing this in Win32 also.

I'm not sure it would be worth the effort & complexity to implement IO 
interrupt() for win32. Sun's JRE doesn't implement it, and the docs 
warn against relying on it, so its unlikely that many (any?) 
applications depend on it. My suggestion would be to match whatever the 
latest Sun JDK behaviour is on windows.
Regards
Bryce.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /