You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by eo...@apache.org on 2021/10/29 12:01:59 UTC
[bookkeeper] branch branch-4.14 updated: Allow to run on java 17,
catch InaccessibleObjectException in DirectMemoryCRC32Digest (#2847)
This is an automated email from the ASF dual-hosted git repository.
eolivelli pushed a commit to branch branch-4.14
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/branch-4.14 by this push:
new ccc0147 Allow to run on java 17, catch InaccessibleObjectException in DirectMemoryCRC32Digest (#2847)
ccc0147 is described below
commit ccc014789401087ae87c02585b355b87108a1a09
Author: ZhangJian He <sh...@gmail.com>
AuthorDate: Fri Oct 29 20:01:04 2021 +0800
Allow to run on java 17, catch InaccessibleObjectException in DirectMemoryCRC32Digest (#2847)
(cherry picked from commit f69f70f182f4f040a6aebf18d114bc7583d44779)
---
.../org/apache/bookkeeper/proto/checksum/DirectMemoryCRC32Digest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/checksum/DirectMemoryCRC32Digest.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/checksum/DirectMemoryCRC32Digest.java
index a895153..4f77531 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/checksum/DirectMemoryCRC32Digest.java
+++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/checksum/DirectMemoryCRC32Digest.java
@@ -83,7 +83,7 @@ class DirectMemoryCRC32Digest implements CRC32Digest {
updateBytesMethod = CRC32.class.getDeclaredMethod("updateBytes", int.class, byte[].class, int.class,
int.class);
updateBytesMethod.setAccessible(true);
- } catch (NoSuchMethodException | SecurityException e) {
+ } catch (Exception e) {
updateByteBufferMethod = null;
updateBytesMethod = null;
}