This is the mail archive of the java@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: Networking Differences Between JRE & GCJ


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.



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