axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Andrews" <paand...@cisco.com>
Subject Question about bean properties
Date Tue, 04 Mar 2003 20:55:35 GMT
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?


Mime
View raw message