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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16320398#comment-16320398 ] 

Vladimir Ozerov commented on IGNITE-7352:
-----------------------------------------

[~agura], looks good to me except of invalid JavaDoc format of new methods in {{GridUnsafe}}.

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