You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2020/10/28 22:19:00 UTC
[jira] [Created] (HBASE-25227) [branch-1] Cast in UnsafeAccess to
avoid Java 11 runtime issue
Andrew Kyle Purtell created HBASE-25227:
-------------------------------------------
Summary: [branch-1] Cast in UnsafeAccess to avoid Java 11 runtime issue
Key: HBASE-25227
URL: https://issues.apache.org/jira/browse/HBASE-25227
Project: HBase
Issue Type: Bug
Reporter: Andrew Kyle Purtell
Assignee: Andrew Kyle Purtell
Fix For: 1.7.0
When running tests with Java 11 UnsafeAccess is observed to throw NoSuchMethodErrors. Some of our methods accept 'int' parameters and use them as parameters to Unsafe methods which should take 'long'. The Java 8 compiler does the implicit conversion but the Java 11 compiler does not. Add casts to fix. Not an issue on branch-2 and up.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)