FasterXML / jackson-core

Core part of Jackson that defines Streaming API as well as basic shared abstractions
Apache License 2.0
2.25k stars 773 forks source link

Demote `StreamReadConstraints` further down parser inheritance hierarchy #1304

Closed cowtowncoder closed 3 months ago

cowtowncoder commented 3 months ago

Currently (pre-2.18), StreamReadConstraints is a field of ParserBase and not ParserMinimalBase. But for various reasons, it'd be better if it was actually moved down (demoted) to ParserMinimalBase. This seems doable, for 2.18 and should not cause backwards compatibility issues with non-JSON implementations.

This would be useful in particular for #1296 to have direct access during construction.