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.ArrayIndexOutOfBoundsException: Index 12288 out of bounds for length 12288
at com.alibaba.fastjson2.JSONWriterUTF8.writeStringEscaped(JSONWriterUTF8.java:931)
at com.alibaba.fastjson2.JSONWriterUTF8.writeStringLatin1(JSONWriterUTF8.java:515)
at com.alibaba.fastjson2.JSONWriterUTF8JDK9.writeString(JSONWriterUTF8JDK9.java:22)
at com.alibaba.fastjson2.writer.ObjectWriterImplMap.write(ObjectWriterImplMap.java:494)
at com.alibaba.fastjson2.JSON.toJSONBytes(JSON.java:3238)
The text was updated successfully, but these errors were encountered:
问题描述
序列化过程中跑出数组越界问题
环境信息
重现步骤
使用jdk8执行无问题,使用jdk11版本执行对特定的数据会出错,具体引起错误的记录还没有找到
期待的正确结果
正常系列化为byte数据,无异常
相关日志输出
java.lang.ArrayIndexOutOfBoundsException: Index 12288 out of bounds for length 12288
at com.alibaba.fastjson2.JSONWriterUTF8.writeStringEscaped(JSONWriterUTF8.java:931)
at com.alibaba.fastjson2.JSONWriterUTF8.writeStringLatin1(JSONWriterUTF8.java:515)
at com.alibaba.fastjson2.JSONWriterUTF8JDK9.writeString(JSONWriterUTF8JDK9.java:22)
at com.alibaba.fastjson2.writer.ObjectWriterImplMap.write(ObjectWriterImplMap.java:494)
at com.alibaba.fastjson2.JSON.toJSONBytes(JSON.java:3238)
The text was updated successfully, but these errors were encountered: