Affects Version/s: None
Fix Version/s: None
JDK version and platform:14
Using an API from < 1.1.2 where a Class Mapper is passed into the XStream constructor now results in a null pointer.
Caused by: java.lang.NullPointerException
The constructor calls setupAliases, which calls alias(String, Class) for a predetermined set of aliases.
However, the method alias uses the field 'classAliasingMapper', which is ONLY set in the buildMapper method, which is NOT called when the constructor is given a class mapper.