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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {