ReflectionFactory is not sufficient to support custom serialization libraries
Alan Bateman
Alan.Bateman at oracle.com
Tue Dec 19 19:45:11 UTC 2017
On 19/12/2017 19:06, David Lloyd wrote:
> :
> It looks like they are using Unsafe for accessing fields, unless I've
> missed something (I'm looking at sun.corba.Bridge).
>
That's right, this hasn't changed. The issue is that legacy
serialization is fundamentally incompatible with strong encapsulation.
We did the minimum in JDK 9 (and 8uX) so that custom serialization
libraries using Unsafe had a solution to work with modules. The IIOP
implementation in the java.corba module was the guinea pig.
-Alan
More information about the jigsaw-dev
mailing list