You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2022/04/10 14:40:00 UTC

[jira] [Resolved] (HBASE-21110) Remove `Illegal reflective access` warning for `java.nio.Bits.unaligned()`

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

Duo Zhang resolved HBASE-21110.
-------------------------------
    Fix Version/s:     (was: 3.0.0-alpha-3)
       Resolution: Won't Fix

At least we have moved all these calls to hbase-thirdparty and the warning itself is not very important. Close at won't fix. Can discuss on HBASE-22172 on whether we should try to suppress these warnings.

> Remove `Illegal reflective access` warning for `java.nio.Bits.unaligned()`
> --------------------------------------------------------------------------
>
>                 Key: HBASE-21110
>                 URL: https://issues.apache.org/jira/browse/HBASE-21110
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Mike Drob
>            Assignee: Guanghao Zhang
>            Priority: Major
>              Labels: jdk11
>
> Using Java 11 RC 1, I get the following warning, probably need to add the suggested flag to our scripts?
> {noformat}
> mdrob@mdrob-MBP:~/IdeaProjects/hbase$ java -version
> java version "11" 2018-09-25
> Java(TM) SE Runtime Environment 18.9 (build 11+28)
> Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)
> mdrob@mdrob-MBP:~/IdeaProjects/hbase$ bin/start-hbase.sh
> mdrob@mdrob-MBP:~/IdeaProjects/hbase$ cat /Users/mdrob/IdeaProjects/hbase/bin/../logs/hbase-mdrob-master-mdrob-MBP.local.out
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.apache.hadoop.hbase.util.UnsafeAvailChecker (file:/Users/mdrob/IdeaProjects/hbase/hbase-common/target/hbase-common-3.0.0-SNAPSHOT.jar) to method java.nio.Bits.unaligned()
> WARNING: Please consider reporting this to the maintainers of org.apache.hadoop.hbase.util.UnsafeAvailChecker
> 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
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)