Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONArray has a bug when calling addAll with a collection (infinite recursion) #901

Open
jacob-wieland-gematik opened this issue Jul 15, 2024 · 3 comments

Comments

@jacob-wieland-gematik
Copy link

jacob-wieland-gematik commented Jul 15, 2024

In Line 1913, the jsonParserConfiguration needs to be passed as last argument

@stleary
Copy link
Owner

stleary commented Jul 15, 2024

@jacob-wieland-gematik Can you provide an example of this bug?
What version are you using? The referenced line number, 1913, does not match the latest JSONArray code.

@hexetia
Copy link

hexetia commented Oct 5, 2024

I found this problem yesterday while upgrading from version 20231013 to 20240205.
In PR #823 a regression was introduced with the addition of more parameters to the function addAll, the call to it on addAll from collection did not contemplate the inclusion of all the new parameters and will cause a stackoverflow error when calling the JsonArray.putAll with a list casted as Object
image

@stleary
Copy link
Owner

stleary commented Oct 5, 2024

@hexetia Thanks for the info and analysis. Will look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants