fix(#901): add the jsonparserConfiguration param to avoid a stackoverflow error

This commit is contained in:
Lucas Nascimento
2024-10-05 11:43:00 -03:00
committed by GitHub
parent 0d71dcf713
commit 14e9cdc485

View File

@@ -2001,7 +2001,7 @@ public class JSONArray implements Iterable<Object> {
// JSONArray // JSONArray
this.myArrayList.addAll(((JSONArray)array).myArrayList); this.myArrayList.addAll(((JSONArray)array).myArrayList);
} else if (array instanceof Collection) { } else if (array instanceof Collection) {
this.addAll((Collection<?>)array, wrap, recursionDepth); this.addAll((Collection<?>)array, wrap, recursionDepth, jsonParserConfiguration);
} else if (array instanceof Iterable) { } else if (array instanceof Iterable) {
this.addAll((Iterable<?>)array, wrap); this.addAll((Iterable<?>)array, wrap);
} else { } else {