Skip to content
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

2.0.38版本开始,反序列化时,当对象中的属性很多时,会报错not support,我本地大概80个左右 #4535

Open
iwannayouhearme opened this issue Oct 9, 2024 · 1 comment

Comments

@iwannayouhearme
Copy link

com.alibaba.fastjson.JSONException: not supported,测试了2.0.37一下版本可以,2.0.38,2.0.40,2.0.46,2.0.53都会报错

@iwannayouhearme
Copy link
Author

iwannayouhearme commented Oct 9, 2024

测试方法:

 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant