Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Not A Bug
-
Affects Version/s: 1.4.7
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
JDK version and platform:sun 1.6.0_24
Description
I have been using XStream in my app. but only int android 4.4.2 have a issue.
could not find method sun.misc.Unsafe.putShort, referenced from method com.thoughtworks.xstream.converters.reflection.SunUnsafeReflectionProvider.write
VFY: unable to resolve virtual method 14111:Lsun/misc/Unsafe;.putShort (Ljava/lang/object;JS)V
Actually XStream 1.4.7 should not use SunUnsafeReflectionProvider in Andoid, but SunLimitedUnsafeReflectionProvider. However, the selection should be made automatically. Is it just a warning or does your application simply not run? Do you have a stack trace? How do you initialize XStream?