C
Christian Schuhegger
hi,
i've tried to search the web to find a reliable way to determin if an
object graph is serializable or not.
my main problem is this: if a class is not serializable at all i will
get a NotSerializableException. but when i have for example a super
class that does not implement serializable but has an appropriate empty
constructor and then i have a subclass that does implement serializable
then the fields of the superclass won't be serialized.
how do i find out if any class in an object graph does not implement
serializable. probably only via reflection?
i've already tried to (miss)use rmic with the -idl option and i expected
it to fail on classes where the super classes are not serializable. but
it does not. it just creates an empty superclass idl definition.
thanks for any comments!
i've tried to search the web to find a reliable way to determin if an
object graph is serializable or not.
my main problem is this: if a class is not serializable at all i will
get a NotSerializableException. but when i have for example a super
class that does not implement serializable but has an appropriate empty
constructor and then i have a subclass that does implement serializable
then the fields of the superclass won't be serialized.
how do i find out if any class in an object graph does not implement
serializable. probably only via reflection?
i've already tried to (miss)use rmic with the -idl option and i expected
it to fail on classes where the super classes are not serializable. but
it does not. it just creates an empty superclass idl definition.
thanks for any comments!