Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to deserialize polymorphic subtypes of base type Enum #2605

Closed
tbloecker opened this issue Jan 25, 2020 · 2 comments
Closed

Failure to deserialize polymorphic subtypes of base type Enum #2605

tbloecker opened this issue Jan 25, 2020 · 2 comments
Milestone

Comments

@tbloecker
Copy link

tbloecker commented Jan 25, 2020

Hi Jackson-Team,
I have posted this first at the Google Jackson-User Group:
https://groups.google.com/forum/#!topic/jackson-user/NjrFaUzTaRA

We have Problems with our application after updating Jackson to 2.10.*
With 2.10 we get "Cannot deserialize Class java.lang.Enum (of type enum) as a Bean" erros but with 2.9.10 everything is fine.
The Problem is about a genereic class where we have to ensure that the generic-parameter is an enum. We don't have full controll about the created subtypes, so we can not use TypeReferences for de-/serialisation as mentioned at the User-Group Post.

I have created a simple Test that reproduce the Problem:
jsontest.zip
Changing the Jackson-Version in the POM to 2.9.10 makes the tests green.

Kind regards
Tim

@cowtowncoder
Copy link
Member

Thank you reporting this issue. I hope I (or someone else) has time to look into this in near future.

@elboukhari
Copy link

Hi,
any update for this issue please ?

Regards,

cowtowncoder added a commit that referenced this issue Feb 12, 2020
@cowtowncoder cowtowncoder changed the title Possible regression issue with Enum-Handling as Generic-Parameter in 2.10 Failure to deserializer polymorphic subtypes of base type Enum Feb 13, 2020
@cowtowncoder cowtowncoder modified the milestones: 2.10.0, 2.10.3 Feb 13, 2020
@cowtowncoder cowtowncoder changed the title Failure to deserializer polymorphic subtypes of base type Enum Failure to deserialize polymorphic subtypes of base type Enum Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants