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

1.2.74 java.lang.ClassCastException: byte[] cannot be cast to int[] #4482

Open
TommyLemon opened this issue Feb 21, 2024 · 0 comments
Open

Comments

@TommyLemon
Copy link

TommyLemon commented Feb 21, 2024

api 'com.alibaba:fastjson:1.2.74'
image

JSON.toJSONString("[0,1]") 返回了 ""[0,1]"",
然后
JSON.parseObject(""[0,1]"", int[].class) 返回了 byte[] 类型值 [-1, -3]

java.lang.ClassCastException: byte[] cannot be cast to int[]
image

https://github.com/TommyLemon/UIGO/blob/0.9.0/APIJSONApp/UIAuto/src/main/java/uiauto/UIAutoApp.java#L3791-L3792

image image https://github.com/TommyLemon/UIGO/blob/master/APIJSONApp/ZBLibrary/src/main/java/zuo/biao/library/util/JSON.java#L82-L89 image image image
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