So, with configuration like:
ObjectMapper mapper = JsonMapper.builder()
.withConfigOverride(Map.Entry.class, cfg ->
cfg.setFormat(JsonFormat.Value.forShape(JsonFormat.Shape.OBJECT)))
.build();
attempts to serialize Map.Entry of JDK Maps (like LinkedHashMap) fails due to access problems (unless --add-opens is used).
There is an existing test that fails this way. But we should be able to have a serializer that works with public API in this case.
So, with configuration like:
attempts to serialize
Map.Entryof JDK Maps (likeLinkedHashMap) fails due to access problems (unless--add-opensis used).There is an existing test that fails this way. But we should be able to have a serializer that works with public API in this case.