Skip to content

blast-hardcheese/jackson-module-scala-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo to show ObjectMapper with DefaultScalaModule 2.12.0+ causes some new and creative runtime errors.

First issue

In the first case, methods annotated with @JsonCreator with the same name but different types now require that the parameter names be different, otherwise

Conflicting property-based creators: already had explicitly marked creator [method regression.ConflictingJsonCreator#apply(long)],
encountered another: [method regression.ConflictingJsonCreator#apply(java.lang.String)]

Second issue

In the second case, all @JsonCreator's must have different parameter names from the member of the value class, otherwise:

Cannot construct instance of `regression.ConflictingMember` (although at least one Creator exists):
no int/Int-argument constructor/factory method to deserialize from Number value (10)

About

Repo to demonstrate a bug in jackson-scala-module 2.12.0+

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages