Uploaded image for project: 'JBoss Marshalling'
  1. JBoss Marshalling
  2. JBMAR-259

Java 24: Migrate to new `ReflectionFactory` APIs

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Marshalling API
    • None

      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.

              Unassigned Unassigned
              dlloyd@redhat.com David Lloyd
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: