Problem:
setting default context for JsonldModule is not possible.
objectMapper.registerModule(new JsonldModule(Collections.EMPTY_MAP));
throws error:
Error: java: cannot access jdk.nashorn.internal.ir.ObjectNode
class file for jdk.nashorn.internal.ir.ObjectNode not found
Likely cause:
the ObjectNode import in JsonldModule is import jdk.nashorn.internal.ir.ObjectNode; instead of import com.fasterxml.jackson.databind.node.ObjectNode;.
Problem:
setting default context for JsonldModule is not possible.
throws error:
Likely cause:
the
ObjectNodeimport inJsonldModuleisimport jdk.nashorn.internal.ir.ObjectNode;instead ofimport com.fasterxml.jackson.databind.node.ObjectNode;.