Skip to content

[JBMAR-259] Java 24: Migrate to new ReflectionFactory APIs #172

@dmlloyd

Description

@dmlloyd

@dmlloyd opened JBMAR-259 and commented

Starting with Java 24, usage of Unsafe will produce warnings. I have introduced a new JDK API to replace the functionality that we were previously using Unsafe for.

In sun.reflect.ReflectionFactory, there are two new methods which return MethodHandle instances that perform default serialization. These should be used for cases where readObject/writeObject are not present, and also for cases where these methods are present and call the default read/write object methods on OOS/OIS.


No further details from JBMAR-259

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