Vladimir Ozerov created IGNITE-7352:
---------------------------------------
Summary: Java 9: rework "sun.misc.SharedSecrets" and
"sun.misc.JavaNioAccess" usages
Key: IGNITE-7352
URL: https://issues.apache.org/jira/browse/IGNITE-7352
Project: Ignite
Issue Type: Task
Components: general
Reporter: Vladimir Ozerov
Fix For: 2.4
*Problem*
We have two usages of {{sun.misc.SharedSecrets}} and {{sun.misc.JavaNioAccess}}
in the project. Both methods do the same thing - convert native pointer to
{{ByteBuffer}}:
{{GridUnsafe.wrapPointer}}
{{PageMemoryImpl.wrapPointer}}
Java9 cannot compile it because these classes were moved to
{{jdk.internal.misc}} package.
*Suggested fix*
1) Remove {{PageMemoryImpl.wrapPointer}} method and use
{{GridUnsafe.wrapPointer}} instead.
2) Rework {{GridUnsafe.wrapPointer}} to reflection-based approach.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)