
|
If you were logged in you would be able to see more operations.
|
|
|
XStream
Created: 12/Sep/07 07:37 AM
Updated: 25/Feb/08 05:01 PM
|
|
| Component/s: |
Converters
|
| Affects Version/s: |
1.2.2
|
| Fix Version/s: |
1.3
|
|
| JDK version and platform: |
JDK 1.6.02, win xp
|
|
See attached test case
scenario:
1. create a class with member field called "id" and some more member fields
2. serialize it to XML
3. deserialize from XML
Outcome:
all member fields will be null in deserialized instance
IMHO,
apparently what cause it, is com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter#doUnmarshal()
on line 143, after attribute named "id" was approved as transient member field, Reader is instructed to move out from current XML element, which causes all information in this element to be passed over.
|
|
Description
|
See attached test case
scenario:
1. create a class with member field called "id" and some more member fields
2. serialize it to XML
3. deserialize from XML
Outcome:
all member fields will be null in deserialized instance
IMHO,
apparently what cause it, is com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter#doUnmarshal()
on line 143, after attribute named "id" was approved as transient member field, Reader is instructed to move out from current XML element, which causes all information in this element to be passed over.
|
Show » |
|