When a parent class has annotations on it's fields and the child class is serialized, the fields inherited from the parents are not named correctly. This should be corrected by adding a @Inherited annotation to the @XStreamAlias annotation definition.
Description
When a parent class has annotations on it's fields and the child class is serialized, the fields inherited from the parents are not named correctly. This should be corrected by adding a @Inherited annotation to the @XStreamAlias annotation definition.
The @Inherit annotation does not have any effect for field level annotations.
I think the correct solution is to get inherited fields and their annotations when processing a class for it's annotations. Here is a patch which also includes a test case (this patch also includes my test case from XSTR-297).
Mark Reynolds - 26/Apr/06 09:21 PM The @Inherit annotation does not have any effect for field level annotations.
I think the correct solution is to get inherited fields and their annotations when processing a class for it's annotations. Here is a patch which also includes a test case (this patch also includes my test case from XSTR-297).
I think the correct solution is to get inherited fields and their annotations when processing a class for it's annotations. Here is a patch which also includes a test case (this patch also includes my test case from
XSTR-297).