Resolution: Not A Bug
Affects Version/s: 1.4.7
Fix Version/s: None
JDK version and platform:1.7.0_71
Same issue I raised on Git: https://github.com/maurotalevi/xstream/issues/1
I am upgrading xStream 1.2 to xStream 1.4.8
I get the following error on application startup:
Caused by: java.lang.NoSuchFieldError: serializationMembers
... 37 more
It seems a code bug (in version 1.4.8). AbstractReflectionConverter class accesses serializationMembers field member of serializationMethodInvoker class, serializationMembers is moved to util package in 1.4.8 but access modifier is still default. Which could be an issue because AbstractReflectionConverter and SerializationMethodInvoker both are in the same package but SerializationMembers is in a different package, so access modifier should be changed to public or it should be accessed using getter methods.
Line 62: serializationMembers = serializationMethodInvoker.serializationMembers;
Line 30: SerializationMembers serializationMembers = new SerializationMembers();
As per documentation this class has been moved to util package. nt
Please let me know if my understanding is correct or doing anything wrong here.