jackson-databind: (regression) Factory method generic type resolution does not use Class-bound type parameter

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 https://github.com/FasterXML/jackson-databind/pull/3221

Expected behavior No error

Additional context Add any other context about the problem here.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 10
  • Comments: 17 (17 by maintainers)

Commits related to this issue

Most upvoted comments

@marcospassos This is literally on top of my to-evaluate list (https://github.com/FasterXML/jackson-future-ideas/wiki/Jackson-Work-in-Progress) so I hope to look into it tonight or tomorrow.