Interoperability Patch for RMI + RMIspy tool
Norbert Frese
postfach@nfrese.net
Sun Jan 4 16:14:00 GMT 2004
I have made changes to libjava-rmi to improve interoperability with other java
implementations. There were only little differences in the protocol,
but they caused a lot of problems. I have written a 'rmispy'-tool to watch the raw-streams
of the rmi conversation as hex/ascii (it hooks into RMISocketFactory). The interoperability
tests and the rmispy tool can be downloaded from:
http://www.scheinwelt.at/~norbertf/gcj/tests/rmi_interop_spy3.tar.gz
The patch (attached) repairs the following things:
* When reusing XXXObjectStream objects:
Magic number & version have to be written/collected every time we send/receive
one or more java objects over the wire.
(Libgcj was only sending/collecting the magic number & version bytes at the beginning of a 'conversation' which was different
from the other javas)
* Void return-values are now beeing handled like in the other java.
(void means no field is written to the stream)
* It also contains the patch from my last mail.
norbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: norberts_rmi_patches_2.txt
Type: text/x-patch
Size: 5313 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040104/7ed0619b/attachment.bin>
More information about the Java
mailing list