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.
Attachments
Gerrit Reviews
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 90917,13 | JsonParserStream should not use recursion | master | yangtools | Status: NEW | -2 | +1 |