diff --git a/bson-kotlin/src/main/resources/META-INF/native-image/reflect-config.json b/bson-kotlin/src/main/resources/META-INF/native-image/reflect-config.json deleted file mode 100644 index fc407c928bf..00000000000 --- a/bson-kotlin/src/main/resources/META-INF/native-image/reflect-config.json +++ /dev/null @@ -1,5 +0,0 @@ -[ -{ - "name":"org.bson.codecs.kotlin.DataClassCodecProvider" -} -] diff --git a/bson-kotlinx/src/main/resources/META-INF/native-image/reflect-config.json b/bson-kotlinx/src/main/resources/META-INF/native-image/reflect-config.json deleted file mode 100644 index 48b9c16c1a7..00000000000 --- a/bson-kotlinx/src/main/resources/META-INF/native-image/reflect-config.json +++ /dev/null @@ -1,5 +0,0 @@ -[ -{ - "name":"org.bson.codecs.kotlinx.KotlinSerializerCodecProvider" -} -] diff --git a/bson-record-codec/src/main/resources/META-INF/native-image/reflect-config.json b/bson-record-codec/src/main/resources/META-INF/native-image/reflect-config.json deleted file mode 100644 index d320243b4e7..00000000000 --- a/bson-record-codec/src/main/resources/META-INF/native-image/reflect-config.json +++ /dev/null @@ -1,5 +0,0 @@ -[ -{ - "name":"org.bson.codecs.record.RecordCodecProvider" -} -] diff --git a/bson/src/main/resources/META-INF/native-image/reflect-config.json b/bson/src/main/resources/META-INF/native-image/reflect-config.json new file mode 100644 index 00000000000..276ef9eda49 --- /dev/null +++ b/bson/src/main/resources/META-INF/native-image/reflect-config.json @@ -0,0 +1,9 @@ +[ +{ + "name":"java.lang.Object", + "queryAllDeclaredMethods":true +}, +{ + "name":"org.slf4j.Logger" +} +] diff --git a/driver-core/src/main/resources/META-INF/native-image/reflect-config.json b/driver-core/src/main/resources/META-INF/native-image/reflect-config.json index cd7ec099635..067e311f1a0 100644 --- a/driver-core/src/main/resources/META-INF/native-image/reflect-config.json +++ b/driver-core/src/main/resources/META-INF/native-image/reflect-config.json @@ -133,27 +133,13 @@ "fields":[{"name":"OPTIONS"}, {"name":"STRING_ENCODING"}, {"name":"STRUCTURE_ALIGNMENT"}, {"name":"TYPE_MAPPER"}], "methods":[{"name":"","parameterTypes":[] }] }, -{ - "name":"com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl", - "methods":[{"name":"","parameterTypes":[] }] -}, { "name":"int", "fields":[{"name":"OPTIONS"}, {"name":"STRING_ENCODING"}, {"name":"STRUCTURE_ALIGNMENT"}, {"name":"TYPE_MAPPER"}] }, -{ - "name":"java.io.FilePermission" -}, -{ - "name":"java.lang.Object", - "queryAllDeclaredMethods":true -}, { "name":"java.lang.Record" }, -{ - "name":"java.lang.RuntimePermission" -}, { "name":"java.lang.Thread", "fields":[{"name":"threadLocalRandomProbe"}] @@ -166,54 +152,24 @@ "name":"java.lang.reflect.Method", "methods":[{"name":"isVarArgs","parameterTypes":[] }] }, -{ - "name":"java.net.NetPermission" -}, { "name":"java.net.Socket", "methods":[{"name":"setOption","parameterTypes":["java.net.SocketOption","java.lang.Object"] }] }, -{ - "name":"java.net.SocketPermission" -}, -{ - "name":"java.net.URLPermission", - "methods":[{"name":"","parameterTypes":["java.lang.String","java.lang.String"] }] -}, { "name":"java.nio.Buffer" }, -{ - "name":"java.security.AllPermission" -}, { "name":"java.security.SecureRandomParameters" }, -{ - "name":"java.security.SecurityPermission" -}, -{ - "name":"java.util.PropertyPermission" -}, { "name":"java.util.concurrent.ForkJoinTask", "fields":[{"name":"aux"}, {"name":"status"}] }, -{ - "name":"java.util.concurrent.atomic.AtomicBoolean", - "fields":[{"name":"value"}] -}, -{ - "name":"java.util.concurrent.atomic.AtomicReference", - "fields":[{"name":"value"}] -}, { "name":"java.util.concurrent.atomic.Striped64", "fields":[{"name":"base"}, {"name":"cellsBusy"}] }, -{ - "name":"javax.smartcardio.CardPermission" -}, { "name":"jdk.internal.misc.Unsafe" }, @@ -244,5 +200,17 @@ { "name":"void", "fields":[{"name":"OPTIONS"}, {"name":"STRING_ENCODING"}, {"name":"STRUCTURE_ALIGNMENT"}, {"name":"TYPE_MAPPER"}] +}, +{ + "name":"org.bson.codecs.kotlin.DataClassCodecProvider" +}, +{ + "name":"org.bson.codecs.kotlinx.KotlinSerializerCodecProvider" +}, +{ + "name":"org.bson.codecs.record.RecordCodecProvider" +}, +{ + "name":"org.slf4j.Logger" } ] diff --git a/graalvm-native-image-app/src/main/resources/META-INF/native-image/reflect-config.json b/graalvm-native-image-app/src/main/resources/META-INF/native-image/reflect-config.json index 7b5464a4fa7..609320d4645 100644 --- a/graalvm-native-image-app/src/main/resources/META-INF/native-image/reflect-config.json +++ b/graalvm-native-image-app/src/main/resources/META-INF/native-image/reflect-config.json @@ -62,7 +62,44 @@ "methods":[{"name":"valueOf","parameterTypes":["java.lang.String"] }] }, { - "name":"org.slf4j.Logger" + "name":"com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl", + "methods":[{"name":"","parameterTypes":[] }] +}, +{ + "name":"java.io.FilePermission" +}, +{ + "name":"java.lang.RuntimePermission" +}, +{ + "name":"java.net.NetPermission" +}, +{ + "name":"java.net.SocketPermission" +}, +{ + "name":"java.net.URLPermission", + "methods":[{"name":"","parameterTypes":["java.lang.String","java.lang.String"] }] +}, +{ + "name":"java.security.AllPermission" +}, +{ + "name":"java.security.SecurityPermission" +}, +{ + "name":"java.util.PropertyPermission" +}, +{ + "name":"java.util.concurrent.atomic.AtomicBoolean", + "fields":[{"name":"value"}] +}, +{ + "name":"java.util.concurrent.atomic.AtomicReference", + "fields":[{"name":"value"}] +}, +{ + "name":"javax.smartcardio.CardPermission" }, { "name":"reactivestreams.tour.Address",