Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Not A Bug
-
Affects Version/s: 1.3.1
-
Fix Version/s: None
-
Component/s: Annotations
-
Labels:None
Description
Once you add @XStreamOmitField annotation in super class there is no way to disable it in subclasses.
For example:
public abstract class DateSensitiveDataObject {
@XStreamOmitField
protected Date dateCreated;
}
public class SomeDataObject extends DateSensitiveDataObject {
}
If dateCreated is required in marshalled SomeDataObject there is no way to include it.
This is by design. Don't use annotations then.