You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Andrey Zagrebin (Jira)" <ji...@apache.org> on 2020/02/25 09:37:00 UTC

[jira] [Closed] (FLINK-15094) Warning about using private constructor of java.nio.DirectByteBuffer in Java 11

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

Andrey Zagrebin closed FLINK-15094.
-----------------------------------
    Fix Version/s: 1.11.0
                   1.10.1
       Resolution: Fixed

merged into master by 74fc20a56ef69046cd8fbdfa9e5ae5e5f6aeea1d
merged into 1,10 by 02255ed8996a49ce53c605cbc5850921e2d52f6d

> Warning about using private constructor of java.nio.DirectByteBuffer in Java 11
> -------------------------------------------------------------------------------
>
>                 Key: FLINK-15094
>                 URL: https://issues.apache.org/jira/browse/FLINK-15094
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / Task
>            Reporter: Andrey Zagrebin
>            Assignee: Andrey Zagrebin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.10.1, 1.11.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The unsafe off-heap in [FLINK-13985|https://jira.apache.org/jira/browse/FLINK-13985] was implemented by hacking into a private constructor of java.nio.DirectByteBuffer. This causes undesirable warnings in Java 11:
> {code:java}
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.apache.flink.core.memory.MemoryUtils (file:/C:/Development/repos/flink/flink-core/target/classes/) to constructor java.nio.DirectByteBuffer(long,int)
> WARNING: Please consider reporting this to the maintainers of org.apache.flink.core.memory.MemoryUtils
> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
> WARNING: All illegal access operations will be denied in a future release{code}
> We should look into this, confirm that it is harmless and try to silence it to avoid confusion for users.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)