[External] : Re: New candidate JEP: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

Alan Bateman Alan.Bateman at oracle.com
Tue Jun 11 15:16:55 UTC 2024


On 06/06/2024 18:37, David Lloyd wrote:
> Just bumping this one more time. I intend to start by opening a JIRA 
> to add the two proposed methods to `ReflectionFactory`, and go from 
> there. I guess that we might need a JEP for the proposed serialization 
> restrictions, which is going to be considerably more involved, so I'm 
> putting that off as a second step for now, pending further discussion.
>

I don't think the JDK should be adding another backdoor for 
serialization libs to do deep reflection.

I'm curious, does your serialization library uses the ReflectionFactory 
to get method handles to the readObject/writeObject methods (if they are 
defined)?

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240611/29f63425/attachment-0001.htm>


More information about the core-libs-dev mailing list