Skip to content

Commit 290298a

Browse files
committed
Report errors on exception
1 parent c2fe48c commit 290298a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

msgpack-core/src/main/java/org/msgpack/core/buffer/DirectBufferAccess.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,7 @@ enum DirectBufferConstructorType {
6969
if(byteBufferConstructor == null)
7070
throw new RuntimeException("Constructor of DirectByteBuffer is not found");
7171
byteBufferConstructor.setAccessible(true);
72-
}
73-
catch(Exception e) {
74-
75-
}
7672

77-
try {
7873
mGetAddress = directByteBufferClass.getDeclaredMethod("address");
7974
mGetAddress.setAccessible(true);
8075

@@ -84,7 +79,7 @@ enum DirectBufferConstructorType {
8479
mClean = mCleaner.getReturnType().getDeclaredMethod("clean");
8580
mClean.setAccessible(true);
8681
}
87-
catch(NoSuchMethodException e) {
82+
catch(Exception e) {
8883
throw new RuntimeException(e);
8984
}
9085
}

0 commit comments

Comments
 (0)