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

Key: XSTR-430
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Joerg Schaible
Reporter: Misko Hevery
Votes: 0
Watchers: 0
Operations

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

Omit field is ignored if field type is marked useAttributeFor

Created: 13/Sep/07 12:26 PM   Updated: 25/Feb/08 05:01 PM
Component/s: Core
Affects Version/s: 1.2.2
Fix Version/s: 1.3


 Description  « Hide
@XStreamAlias("User")
class User {
   String name;
   String password;
}

xstream.useAttributeFor(String.class);
xstream.omitField(User.class, "password");

Upon serialization I get: (password should not be there!)
<User name="abc" password="pass"/>

However if userAttributeFor is not used I get (Correct password is ignored)
<User>
   <name>abc</name>
</User>

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Joerg Schaible - 19/Sep/07 03:36 PM
Fixed in head revision. Thanks for report.

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