You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2020/10/29 21:41:11 UTC

[hbase] 02/02: HBASE-25227 [branch-1] Fix Java 11 runtime issue in UnsafeAccess #2594

This is an automated email from the ASF dual-hosted git repository.

apurtell pushed a commit to branch branch-1
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit 8813b3bfc10051b6d3ced95f6c29e2e78efd74d8
Author: Andrew Purtell <ap...@apache.org>
AuthorDate: Thu Oct 29 10:25:37 2020 -0700

    HBASE-25227 [branch-1] Fix Java 11 runtime issue in UnsafeAccess #2594
    
    Reapply with corrected commit message.
    
    Signed-off-by: Reid Chan <re...@apache.org>
    Signed-off-by: Viraj Jasani <vj...@apache.org>
    Signed-off-by: Bharath Vissapragada <bh...@apache.org>
    Signed-off-by: Michael Stack <st...@apache.org>
---
 .../src/main/java/org/apache/hadoop/hbase/util/UnsafeAccess.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAccess.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAccess.java
index 72b1c1c..82f073c 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAccess.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAccess.java
@@ -42,7 +42,7 @@ public final class UnsafeAccess {
   public static final Unsafe theUnsafe;
 
   /** The offset to the first element in a byte array. */
-  public static final int BYTE_ARRAY_BASE_OFFSET;
+  public static final long BYTE_ARRAY_BASE_OFFSET;
 
   public static final boolean LITTLE_ENDIAN =
     ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN);