[YANGTOOLS-936] JsonParserStream should not use recursion Created: 20/Jan/19  Updated: 05/Jan/24

Status: Confirmed
Project: yangtools
Component/s: codecs
Affects Version/s: None
Fix Version/s: 14.0.0

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Current implementation of JsonParserStream uses recursion, which means it can hit StackOverflowError. This is not particularly nice and we have a combined catch with OutOfMemoryError.

The OOME is something we should not be catching, as when that is raised, we have no idea what happened - it could be us, it could be someone else.

The SOE is something we can easily avoid by keeping a processing stack.


Generated at Wed Feb 07 20:54:43 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.