This is the mail archive of the
mauve-discuss@sourceware.org
mailing list for the Mauve project.
Re: tests with rmic
>I can't use threads in a same virtual machine, because there is no
serialization of objects in RMI when the server and the client lives in
the same virtual machine (maybe it's possible enabling a flag somewhere,
but i don't know the API)
I looked at our gnu.java.rmi.server.UnicastRef and - yes, unfortunately
it seems that there is system property in Classpath that would force the
object serialization even if the RMI client and server are in the same
machine.
If you plan serious testing work, we should probably add such property
as a necessary testing tool, but altering RMI implementation requires to
have a test suite first. I think, you can commit such tests anyway
because the object serialization is not the only thing in RMI that
deserves testing.
Audrius.