[
https://issues.apache.org/jira/browse/IGNITE-7352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16322080#comment-16322080
]
Andrey Gura commented on IGNITE-7352:
-------------------------------------
Merged to master branch.
> 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
> Assignee: Andrey Gura
> 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)