JsonFactory.setStreamReadConstraints(StreamReadConstraints) fails to update "maxNameLength" for symbol tables
cowtowncoder opened this issue · 0 comments
cowtowncoder commented
(note: off-shoot of a comment on #1001)
As reported by @denizk there is a problem in applying overrides for one of constraints:
JsonFactory.setStreamReadConstraints(StreamReadConstraints.builder().maxNameLength(100_000).build());
does not update symbol table set by:
JsonFactory._rootCharSymbols = CharsToNameCanonicalizer.createRoot(this);
and only Builder-based alternative works.
It should be possible to apply constraints with setStreamReadConstraints()
too.