History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XSTR-279
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Assignee: Joerg Schaible
Reporter: Philippe Lefebvre
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
XStream

Annotations are not inherited from parent classes

Created: 01/Mar/06 04:46 PM   Updated: 25/Feb/08 05:01 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3

File Attachments: 1. Text File xstr-279.patch (7 kb)

Issue Links:
Related
 

JDK version and platform: Sun 1.5.0_06 / Win XP


 Description  « Hide
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.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
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).

Joerg Schaible - 23/Nov/07 05:06 PM
Annotations are now always inherited. You may give the head revision a try.

Joerg Schaible - 25/Feb/08 05:01 PM
Closing issues before next release.