Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8333798

Add missing serialization functionality to sun.reflect.ReflectionFactory

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      Issue JDK-8164908 added support for functionality required to continue to support IIOP and custom serializers in light of additional module-based restrictions on reflection. It was expected that these libraries would use `sun.misc.Unsafe` in order to access fields of serializable classes. However, with JEP 471, the methods necessary to do this are being deprecated, and ultimately will be removed.

      To allow these libraries to continue to function, it is proposed to add two methods to `sun.reflect.ReflectionFactory` which will allow for the acquisition of accessor `MethodHandle` instances for class instance fields.

      It is also proposed to add a method which allows for the reading of private static final fields in order to read serialization-specific information from classes which have it.

            Unassigned Unassigned
            dmlloyd David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: