From 74b44cd6fdda9dc4712d5829f05c641ba3217360 Mon Sep 17 00:00:00 2001 From: Nuvindu Date: Tue, 16 Apr 2024 11:12:23 +0530 Subject: [PATCH] Add config files for GraalVM tests --- .../jni-config.json | 48 +++++++++++++++++++ .../predefined-classes-config.json | 6 +++ .../reflect-config.json | 18 +++++++ 3 files changed, 72 insertions(+) create mode 100644 native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/jni-config.json create mode 100644 native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/predefined-classes-config.json create mode 100644 native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/reflect-config.json diff --git a/native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/jni-config.json b/native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/jni-config.json new file mode 100644 index 0000000..9f54984 --- /dev/null +++ b/native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/jni-config.json @@ -0,0 +1,48 @@ +[ + { + "name": "ballerinax.confluent$0046cavroserdes.0.$_init", + "methods": [ + { + "name": "main", + "parameterTypes": [ + "java.lang.String[]" + ] + } + ] + }, + { + "name": "java.lang.String", + "methods": [ + { + "name": "lastIndexOf", + "parameterTypes": [ + "int" + ] + }, + { + "name": "substring", + "parameterTypes": [ + "int" + ] + } + ] + }, + { + "name": "java.lang.System", + "methods": [ + { + "name": "getProperty", + "parameterTypes": [ + "java.lang.String" + ] + }, + { + "name": "setProperty", + "parameterTypes": [ + "java.lang.String", + "java.lang.String" + ] + } + ] + } +] diff --git a/native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/predefined-classes-config.json b/native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/predefined-classes-config.json new file mode 100644 index 0000000..aa7103c --- /dev/null +++ b/native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/predefined-classes-config.json @@ -0,0 +1,6 @@ +[ + { + "type": "agent-extracted", + "classes": [] + } +] diff --git a/native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/reflect-config.json b/native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/reflect-config.json new file mode 100644 index 0000000..7f11ba8 --- /dev/null +++ b/native/src/main/resources/META-INF/native-image/io.ballerina.lib/confluent.cavroserdes-native/reflect-config.json @@ -0,0 +1,18 @@ +[ + { + "name": "java.util.concurrent.atomic.AtomicBoolean", + "fields": [ + { + "name": "value" + } + ] + }, + { + "name": "java.util.concurrent.atomic.AtomicReference", + "fields": [ + { + "name": "value" + } + ] + } +]