-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
None
-
master
To allow these libraries to continue to function, it is proposed to add two methods to `sun.reflect.ReflectionFactory` which will allow serialization libraries to acquire a method handle to generated `readObject`/`writeObject` methods which set or get the fields of the serializable class using the serialization `GetField`/`PutField` mechanism. These generated methods should be used by serialization libraries to serialize and deserialize classes which do not have a `readObject`/`writeObject` method or which use `ObjectInputStream.defaultReadObject`/`ObjectOutputStream.defaultWriteObject` to supplement default serialization.
It is also proposed to add methods which allow for the reading of serialization-specific private static final fields from classes which have them.
With the addition of these methods, serialization libraries no longer need to rely on `Unsafe` for serialization/deserialization activities.
- csr for
-
JDK-8335438 Add missing serialization functionality to sun.reflect.ReflectionFactory
- Closed
- duplicates
-
JDK-8333797 Add missing serialization functionality to sun.reflect.ReflectionFactory
- Closed
-
JDK-8333798 Add missing serialization functionality to sun.reflect.ReflectionFactory
- Closed
- relates to
-
JDK-8333798 Add missing serialization functionality to sun.reflect.ReflectionFactory
- Closed
-
JDK-8333797 Add missing serialization functionality to sun.reflect.ReflectionFactory
- Closed
- links to
-
Commit(master) openjdk/jdk/e11d126a
-
Review(master) openjdk/jdk/19702