Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.3.1
-
Fix Version/s: 1.4
-
Component/s: Annotations
-
Labels:None
-
JDK version and platform:Android 1.1
Description
When using XStream for deserialization with Android 1.1, and using annotations (both autodetectAnnotations(true) and processAnnotations()), I get:
com.thoughtworks.xstream.XStream$InitializationException: No com.thoughtworks.xstream.mapper.AnnotationMapper available
When using explicit non-annotated aliases etc. the deserialization works perfectly. Would it be that Dalvik somehow filters out the AnnotationMapper.class from the jar??
XStream is compatible down to JDK 1.3. Therefore annotation support is added dynamically when running on a JDK that implements java.specification.version 1.5. At least Android 1.0 returned here only 0.9. I have no idea for Android 1.1. Can you run com.thoughtworks.xstream.core.JVM.main() and report the output of the console? For further testing you may also try to set this system property to 1.5 and run your application and tell whether it works then.