Skip to content

Commit

Permalink
[fixup][table-planner] Make sure the object mapper is using the corre…
Browse files Browse the repository at this point in the history
…ct classloader

Signed-off-by: slinkydeveloper <francescoguard@gmail.com>
  • Loading branch information
slinkydeveloper committed Dec 22, 2021
1 parent d5824d0 commit 787be2a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public static ObjectMapper createObjectMapper(SerdeContext serdeCtx) {
null, // JsonFactory
null, // DefaultSerializerProvider
ctx);
mapper.setTypeFactory(
mapper.getTypeFactory().withClassLoader(JsonSerdeUtil.class.getClassLoader()));
mapper.configure(MapperFeature.USE_GETTERS_AS_SETTERS, false);
ctx.setObjectMapper(mapper);
return mapper;
Expand Down

0 comments on commit 787be2a

Please sign in to comment.