Skip to content

Deserialization of Throwables with PropertyNamingStrategy does not work #3497

Closed
@cowtowncoder

Description

@cowtowncoder

(note: follow up to #3275 )

It looks like following test would fail:

    public void testDeserializeWithNamingStrategy() throws IOException {
        final ObjectMapper mapper = JsonMapper.builder()
                .propertyNamingStrategy(PropertyNamingStrategies.UPPER_CAMEL_CASE)
                .build();
        Exception ex = mapper.readValue(a2q(
                "{'Message':'Message!, 'Cause':{}}"
                ),
                Exception.class);
        assertNotNull(ex);
    }

since naming strategy is not considered when constructing deserializer for Throwable types.
It should work.

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