You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Andrey Gura (JIRA)" <ji...@apache.org> on 2018/01/09 10:29:00 UTC

[jira] [Assigned] (IGNITE-7352) Java 9: rework "sun.misc.SharedSecrets" and "sun.misc.JavaNioAccess" usages

     [ https://issues.apache.org/jira/browse/IGNITE-7352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Gura reassigned IGNITE-7352:
-----------------------------------

    Assignee: Andrey Gura

> 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)