Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Jackson2ExecutionContextStringSerializer fails when deserializing java.time.LocalDate [BATCH-2838] #777
The ObjectMapper used in the Jackson2ExecutionContextStringSerializer doesn't register the JavaTimeModule. Because of this you cannot put java.time objects in the Execution Context.
I'd like to overrule the ObjectMapper used in the Jackson2ExecutionContextStringSerializer, and there's a setObjectMapper method for this very reason, but the objectmapper used in Jackson2ExecutionContextStringSerializer does register a JobParametersModule, which is a private inner class. This one does seem important, so overruling the used objectmapper seems a bad idea.
The simplest fix to this would be to register the JavaTimeModule in the Jackson2ExecutionContextStringSerializer, or to make the JobParametersModule public