Skip to content

Annotated returns RawType in place of Generic Type in 2.7.x #1248

@apjoseph

Description

@apjoseph

When calling getGenericType() on com.fasterxml.jackson.databind.introspect.Annotated, 2.7.x returns the raw type instead!. I am aware that this method has been deprecated, but the current functionality results in very hard to debug issues -like a LinkedHashMap being substituted for a List<String>, resulting in an error when the getter is called.

This method should either be removed from 2.7 -or should function correctly until it is removed. Treating the type as List is obviously not going to do anything remotely similar to what the user expects and will wreak havoc on any libraries that are maintaining backwards compatibility with older Jackson versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions