Skip to content

[JBMAR-215] Java 9: Eliminate uses of reflection setAccessible() #144

@dmlloyd

Description

@dmlloyd

@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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions