@dmlloyd opened JBMAR-215 and commented
As of Java 9, setAccessible() is effectively discontinued for portable code. Switch to Unsafe and ReflectionFactory.
Issue Links:
- JBEAP-14604 (7.1.z) IllegalStateException: Constructor is unexpectedly inaccessible
("causes")
- ISPN-14826 NoClassDefFoundError: Could not initialize class org.jboss.marshalling.river.ClassDescriptors with jdk 17
("is depended on by")
- JBMAR-216 JDK 10 - reflection fields are no longer found
("incorporates")
- JBMAR-214 Java 9: Illegal reflective access to create OptionalDataException
("incorporates")