We use Jakarta JSON Binding to deserialize an exception (with their extensions). This worked well with JDK 11, but in JDK 17, it fails with a jakarta.json.bind.JsonbException: Internal error: Unable to make field private java.lang.Throwable java.lang.Throwable.cause accessible: module java.base does not "opens java.lang" to unnamed module.
We use Jakarta JSON Binding to deserialize an exception (with their extensions). This worked well with JDK 11, but in JDK 17, it fails with a
jakarta.json.bind.JsonbException: Internal error: Unable to make field private java.lang.Throwable java.lang.Throwable.cause accessible: module java.base does not "opens java.lang" to unnamed module
.