I have beans whose properties are themselves beans, but I have a problem
that the bean serializer just looks at the type of the properties rather
than at the type of the properties' values - some of those values are
sub-classes of the property type.

E.g.:

Public class base {
        public int getAnInt() { ... }
}

Public class sub extends base {
        public String getAString() { ... }
}

Public class bean1 {
        base thing = new sub();

        public base getThing() { return thing; }
}

Will only encode the attributes in the base class, not the derived
class. Shouldn't it encode the derived class attributes too?

Reply via email to