[Ikvm-developers] Serialization of .Net objects
Brought to you by:
jfrijters
|
From: Todd S. <tod...@gm...> - 2006-08-30 22:35:55
|
I have a java lib that has been ikvm-ified. The library provides a
distributed processing framework via the dynamic generation of proxies
that deal with marshaling objects across the network. The library
utilizes a proprietary protocol that relies on specialized instances of
ObjectInputStream and ObjectOutputStream. The proxy logic takes
different actions depending on if the object implements java.io.Serializable
or not. Network serialization of .Net objects via the Java library is
working fine (thanks to IVKM and GNU Classpath). However, I have
found that a C# class defined as
[Serializable]
class Foo { ... }
Does not implement java.io.Serializable in the context of the java code that
has been converted via IKVM. If I declare the C# class as
class Foo : java.io.Serializable.__Interface {}
then it does implement
java.io.Serializable in the IKVM context. I would like the users
of the framework to be able to write C# classes without introducing
the ikvm-specific Serializable.__Interface. Can this be achieved? Is there
something that the java library could look for to indicate that the
C# class has the [Serializable] attribute?
|