Skip to content

JsonFactory.setStreamReadConstraints(StreamReadConstraints) fails to update "maxNameLength" for symbol tables #1207

Description

@cowtowncoder

(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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions