As a follow up, turns out that the problem is, as far as I can see:
https://github.com/FasterXML/jackson-databind/issues/1338
in the code itself. Issue has full detail, but basically Jackson is
indicating a real problem in annotation for
@JsonSerialize(.... keyAs=String.class)
public Map<Currency, ...> getRevenue() { .... }
because that would require cast from `Currency` into `String`, before
serialization, and that is not valid in Java. I suspect 2.4.6 simply
ignored this annotation, or managed to work despite it (getting default key
serializer that uses `toString()` for result).
Anyway, this is what triggers the exception.
I'll see if there is a way to improve exception message itself, however; it
is bit difficult to backtrack from it as things are.
-+ Tatu +-
On Fri, Aug 12, 2016 at 5:11 AM, JonyD <[email protected]> wrote:
> I've created a repo in https://github.com/JonyD/my-app with a failing
> test.
> The pom.xml is a bit messy but it's important because of dependencies.
>
> just do "mvn clean install" to run the failing test.
> I hope this helps and hope you can find the bug.
>
> Notice that with jackson version 2.4.6 the test passes, but with version
> 2.8.1 it does not.
> To verify this, just change in pom.xml the string:
> <jackson.version>2.8.1</jackson.version>
>
> with the following
> <jackson.version>2.4.6</jackson.version>
>
>
> Regards,
> J
>
> --
> You received this message because you are subscribed to the Google Groups
> "jackson-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.