Open iwannayouhearme opened 1 month ago
测试方法:
public static void main(String[] args) {
String s1 = "{\"test\":\"1\"}";
JSONObject.parseObject(s1, AppPkg.class);
}
异常堆栈:
Exception in thread "main" com.alibaba.fastjson.JSONException: not supported
at com.alibaba.fastjson.JSON.parseObject(JSON.java:520)
at com.test.TestService.main(TestService.java:3449)
Caused by: com.alibaba.fastjson2.JSONException: not supported
at com.alibaba.fastjson2.internal.asm.MethodWriter.visitJumpInsn(MethodWriter.java:285)
at com.alibaba.fastjson2.reader.ObjectReaderCreatorASM.genMethodReadObject(ObjectReaderCreatorASM.java:1875)
at com.alibaba.fastjson2.reader.ObjectReaderCreatorASM.jitObjectReader(ObjectReaderCreatorASM.java:578)
at com.alibaba.fastjson2.reader.ObjectReaderCreatorASM.createObjectReader(ObjectReaderCreatorASM.java:344)
at com.alibaba.fastjson2.reader.ObjectReaderProvider.getObjectReaderInternal(ObjectReaderProvider.java:1025)
at com.alibaba.fastjson2.reader.ObjectReaderProvider.getObjectReader(ObjectReaderProvider.java:920)
at com.alibaba.fastjson2.JSONReader.getObjectReader(JSONReader.java:480)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:509)
... 1 more
com.alibaba.fastjson.JSONException: not supported,测试了2.0.37一下版本可以,2.0.38,2.0.40,2.0.46,2.0.53都会报错