mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-05 18:25:24 +08:00
fix(#901): add the jsonparserConfiguration param to avoid a stackoverflow error
This commit is contained in:
@@ -2001,7 +2001,7 @@ public class JSONArray implements Iterable<Object> {
|
||||
// JSONArray
|
||||
this.myArrayList.addAll(((JSONArray)array).myArrayList);
|
||||
} else if (array instanceof Collection) {
|
||||
this.addAll((Collection<?>)array, wrap, recursionDepth);
|
||||
this.addAll((Collection<?>)array, wrap, recursionDepth, jsonParserConfiguration);
|
||||
} else if (array instanceof Iterable) {
|
||||
this.addAll((Iterable<?>)array, wrap);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user