You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3210)
at java.util.Arrays.copyOf(Arrays.java:3181)
at java.util.ArrayList.grow(ArrayList.java:265)
at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:239)
at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:231)
at java.util.ArrayList.add(ArrayList.java:462)
at com.alibaba.fastjson2.JSONReader.readArray(JSONReader.java:2389)
at com.alibaba.fastjson2.JSON.parseArray(JSON.java:2497)
at com.box.Main1.main(Main1.java:27)
附加信息
fighting💪
The text was updated successfully, but these errors were encountered:
问题描述
使用JSON.parseArray(String text, Class type)方法解析字符串时,指定解析类型,在字符串是非指定类型数组时,会导致OOM
环境信息
请填写以下信息:
重现步骤
如下:
期待的正确结果
如之前的版本一样抛出解析异常,这个bug是新引入的,之前某个版本是可用的
相关日志输出
附加信息
fighting💪
The text was updated successfully, but these errors were encountered: