I try to parse a XML with XStream 1.4.9 generated by an older version. I checked the changes, found the commit and the faq entry for immutable type references.
The type I try to parse is an enum. I tried calling addImmutableType(EnumType.class, true) on the XStream object but to no avail. The parser still claims that the type is not referenceable as the check is answered by EnumMapper.
Is there any way to enable reading references for enum types?
Greetings
Alex
Installing a custom mapper worked. I just use isReferenceable instead of isImmutableValueType.
Thanks,
Alex