Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Declaring parent classes

Greetings.

Is there a way to make all classes referenced from a given class extend
a particular interface?

I am trying to serialize an object of class A, which references objects
of classes B and C. Class A extends java.io.Serializable interface, but
classes B and C don't. I would like to be able to make classes B and C
extend java.io.Serializable. Note that class A may be changed in the
future and start referencing some other classes, so I need a dynamic
solution for this problem.

Any ideas?

Thanks.

Oleg


Back to the top