Skip to content

(regression) Factory method generic type resolution does not use Class-bound type parameter #3220

@marcospassos

Description

@marcospassos

Describe the bug
We're currently using Jackson 2.11.2, updating to the latest version has broken several tests. After some investigation, we discovered that the bug was introduced in version 2.11.3, as the reproduction test shows.

The bug is somewhat related to static factory methods (stamp method in the example) – the same does not happen to constructor methods.

Version information
Introduced in 2.11.3

To Reproduce
#3221

Expected behavior
No error

Additional context
Add any other context about the problem here.

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