Kafka Streams binder native changes

- RocksDBException and Status need INVOKE_DECLARED_CONSTRUCTOR privileges
This commit is contained in:
Soby Chacko
2023-11-03 14:37:03 -04:00
parent 36a43be235
commit b8e4885d21

View File

@@ -61,11 +61,12 @@ public class KafkaStreamsBinderRuntimeHints implements RuntimeHintsRegistrar {
}
private static void registerKafkaStreamsJniHints(RuntimeHints hints) {
hints.jni().registerType(RocksDBException.class, MemberCategory.DECLARED_FIELDS, MemberCategory.INVOKE_DECLARED_METHODS);
hints.jni().registerType(Status.class, MemberCategory.DECLARED_FIELDS, MemberCategory.INVOKE_DECLARED_METHODS);
hints.jni().registerType(RocksDBException.class, MemberCategory.DECLARED_FIELDS, MemberCategory.INVOKE_DECLARED_METHODS,
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
hints.jni().registerType(Status.class, MemberCategory.DECLARED_FIELDS, MemberCategory.INVOKE_DECLARED_METHODS,
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
hints.resources().registerPattern("librocksdbjni-*");
}
private static void registerKafkaStreamsReflectionHints(RuntimeHints hints) {