Shoothzj opened a new pull request #2847:
URL: https://github.com/apache/bookkeeper/pull/2847
### Motivation
Allow bookkeeper to run on java 17.
### Changes
The problem is java17 doesn't allow `setAccessible(true)` unless config
`--add-opens`
```java
// DirectMemoryCRC32Digest.class
updateByteBufferMethod = CRC32.class.getDeclaredMethod("updateByteBuffer",
int.class, long.class, int.class,
int.class);
updateByteBufferMethod.setAccessible(true);
updateBytesMethod = CRC32.class.getDeclaredMethod("updateBytes",
int.class, byte[].class, int.class,
int.class);
updateBytesMethod.setAccessible(true);
```
If run on java17, config the `--add-opens`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]