Replies: 2 comments
-
Created issue #5231 -- no need for Discussion I think. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Looks like a bug, not sure why |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I get the following exception in Jackson 3 (rc6)(the same program works in Jackson 2)
Exception in thread "main" tools.jackson.databind.DatabindException: Cannot cast [Ljava.util.Locale; to java.util.Locale
at [Source: (String)"{"locale":"en-US","locales":["en-US"]}"; line: 1, column: 38] (through reference chain: j3bug.DateTimeParserConfig["locales"])
at tools.jackson.databind.DatabindException.wrapWithPath(DatabindException.java:111)
at tools.jackson.databind.deser.bean.BeanDeserializerBase.wrapAndThrow(BeanDeserializerBase.java:1850)
at tools.jackson.databind.deser.bean.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:534)
at tools.jackson.databind.deser.bean.BeanDeserializer.deserialize(BeanDeserializer.java:200)
at tools.jackson.databind.deser.DeserializationContextExt.readRootValue(DeserializationContextExt.java:265)
at tools.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2688)
at tools.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:1600)
at j3bug.J3bug.main(J3bug.java:15)
Caused by: java.lang.ClassCastException: Cannot cast [Ljava.util.Locale; to java.util.Locale
at java.base/java.lang.Class.cast(Class.java:3889)
at tools.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:132)
at tools.jackson.databind.deser.bean.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:532)
... 5 more
Class I am attempting to serialize is here:
Driver is here:
Any clues appreciated.
Beta Was this translation helpful? Give feedback.
All reactions