Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Empty ImmutableMap Objects Are Not Deserialized Correctly by GuavaMapDeserializer.java #29

@pbergn

Description

@pbergn

The GuavaMapDeserializer#deserialize() method does not correctly deserialize empty ImmutableMap object instances when they are nested as bean properties and have a "@Class" identifier as the first key/value pair in the enclosing curly braces. Note that "empty" implies that there are no additional key/value pairs after the class identifier in question, which results in parsing error.

More specifically, the parsing issue stems from the check on line 120 where, JsonToken.END_OBJECT is NOT considered as a legitimate first token, and a run-time exception is raised. Note that the regular MapDeserializer class DOES permit the END_OBJECT token as a legitimate first token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions