RFR: 8331670: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal
Alan Bateman
alanb at openjdk.org
Mon May 13 07:42:05 UTC 2024
On Mon, 13 May 2024 06:58:42 GMT, Per Minborg <pminborg at openjdk.org> wrote:
> Would it make sense to add some verbiage in the JavaDocs for `sun.misc.Unsafe` that indicates the planned direction for said class and the use of the new command line options?
There is an API note to say that the class predates VarHandle and the FFM APIs and that the API shouldn't be used fr new code. We could add more and a link to the JEP might help. That said, JDK doesn't generate or publish the API docs for this class, it will only be read if someone looks at the source file.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19174#issuecomment-2106862649
More information about the core-libs-dev
mailing list