Skip to content

Compatibility issue with Jackson 2.20 and above #2166

@yeikel

Description

@yeikel

Describe the bug

I am trying to use the project along with Jackson 2.20.1 but it fails at runtime with the following issue while creating the mapper

Exception in thread "main" java.lang.NoSuchFieldError: Class com.fasterxml.jackson.databind.PropertyNamingStrategy does not have member field 'com.fasterxml.jackson.databind.PropertyNamingStrategy SNAKE_CASE'
	at org.kohsuke.github.GitHubClient.<clinit>(GitHubClient.java:98)

To Reproduce
Steps to reproduce the behavior:

  1. Configure a project and add Jackson 2.20.1 to the classpath
  2. Try to create a new client

Expected behavior

The client is created

Actual behavior

It fails because it cannot find PropertyNamingStrategy SNAKE_CASE which no longer exists

Desktop (please complete the following information):

  • Version: 2.0-rc.5

Additional context

Usage:

MAPPER.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE);

This feature was dropped in Jackson 2.20. Using Jackson 2.19.4 works for now but it is not a long term solution

See FasterXML/jackson-databind@4d20831

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions