jackson-databind icon indicating copy to clipboard operation
jackson-databind copied to clipboard

Consider using `AccessibleObject.trySetAccess()` instead of `setAccess()` in `ClassUtil.checkAndFixAccess()`

Open cowtowncoder opened this issue 3 years ago • 1 comments

With Java 9 and later, addition of Module system (JPMS) causes a new type of failure when attempting to call setAccessible() on Classes and accessors (Fields, Methods, Constructors). While we cannot directly refer to the type we should be able to match it by name and include a bit more information on underlying problem.

cowtowncoder avatar Apr 15 '21 04:04 cowtowncoder