Skip to content

Version 2.13.2 uses Method.getParameterCount() which is not supported on Android before API 26 #3412

@finiasz

Description

@finiasz

After updating from jackson 2.13.1 to jackson 2.13.2 I noticed my app no longer worked on Android API 21.

After digging into the code I found the issue at line 187 of AnnotatedMethodCollector.java:

  • version 2.13.1 used m.getParameterTypes().length
  • version 2.13.2 uses m.getParameterCount()

However, the getParameterCount() method requires API 26 on Android.

For now, I'm sticking to version 2.13.1 😄


EDIT: the fix included the official 2.13.3 release

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidIssues related to use on Android platform

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions