-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Android - NoSuchMethodError: No virtual method getBoolean(Ljava/lang/Object;J)Z in class Lsun/misc/Unsafe; #2497
Comments
请问测试运行的Android系统版本是多少? |
主机 Android 10 跑 VMOS Android 5.1.1 (64 bit) |
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.50.android5-SNAPSHOT/ |
Android 7以下core-libart.jar中Unsafe魔法类不完整, 这边已发现并兼容, 麻烦使用上面温少发的快照版验收下. |
测试了 |
https://github.com/alibaba/fastjson2/releases/tag/2.0.50 |
问题描述
https://github.com/alibaba/fastjson2/blob/main/core/src/main/java/com/alibaba/fastjson2/writer/FieldWriterBoolValField.java#L28
环境信息
重现步骤
JSON.toJSONString(xxx, JSONWriter.Feature.FieldBased);
附加信息
Ref? : #2041
设备:
Oppo F1s, A57, A1601
Galaxy J1 Mini, Galaxy Note4, Galaxy J2 Prime
Vivo Y55A,
Xiaomi HM Note 2
VMOS Virtual Machine, Android 5.1 (64 Bit) 可以重现这个崩溃
The text was updated successfully, but these errors were encountered: