On Mon, Jun 8, 2020 at 9:47 AM PJ Fanning <[email protected]> wrote: > > I had this module compiling but a lot of tests were broken. There is 1 > compile problem now (after a recent jackson-databind change). > > https://travis-ci.org/github/FasterXML/jackson-module-scala/jobs/695451500 > > There is an instance where I only have access to a DeserializationConfig but > then need the full DeserializationContext to call a method. Any suggestions > about how I can get a context from a config or how I could refactor the code > to store a context?
Since `DeserializationContext` is per-call (i.e. no stateful instance created for each `readValue()`) but `DeserializationConfig` is not (it is immutable already in 2.x), latter can not contain reference to former, so that is unfortunately not possible. I think I'd need to understand usage bit better -- could you create an issue for `jackson-databind`, adding references from your link, so I can have a look at it? AnnotationIntrospector is similar to `DeserializationConfig` and lacks access to `DeserializationContext` (nor should expect one), but there should be a way to refactor things. -+ Tatu +- -- You received this message because you are subscribed to the Google Groups "jackson-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-dev/CAL4a10i8rJ-xXoG5GkEavfZ%2BzvOqxYXwtj6WFTYuLKqTACV0ig%40mail.gmail.com.
