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

eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new f69f70f  Allow to run on java 17, catch InaccessibleObjectException in 
DirectMemoryCRC32Digest  (#2847)
f69f70f is described below

commit f69f70f182f4f040a6aebf18d114bc7583d44779
Author: ZhangJian He <[email protected]>
AuthorDate: Fri Oct 29 20:01:04 2021 +0800

    Allow to run on java 17, catch InaccessibleObjectException in 
DirectMemoryCRC32Digest  (#2847)
---
 .../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;
         }

Reply via email to