alibaba / alibaba/fastjson2

[BUG] java.lang.ArrayIndexOutOfBoundsException: Index 12288 out of bounds for length 12288

Open
#1,591 9 comments 0 reactions 0 assignees View on GitHub
bug fixed
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

升级到2.0.34后出现新的错误:java.lang.ArrayIndexOutOfBoundsException: Index 12288 out of bounds for length 12288

JSONObject.toJSONString(error, JSONWriter.Feature.PrettyFormat)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing JSONObject.toJSONString(error, JSONWriter.Feature.PrettyFormat) on version 2.0.34 and capture the complete stack trace and input object. Trace the failing serialization path associated with the ArrayIndexOutOfBoundsException, then verify that the same case completes without the exception and is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.