From 0530f4f6a29628661f65085a1fa93595bddf45a8 Mon Sep 17 00:00:00 2001 From: Valentin Kovalenko Date: Fri, 1 Nov 2024 08:42:52 -0600 Subject: [PATCH] Make CAPI, jna.Native/Structure initializable at run time (#1553) JAVA-5683 --- .../native-image/native-image.properties | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 mongodb-crypt/src/main/resources/META-INF/native-image/native-image.properties diff --git a/mongodb-crypt/src/main/resources/META-INF/native-image/native-image.properties b/mongodb-crypt/src/main/resources/META-INF/native-image/native-image.properties new file mode 100644 index 00000000000..731d0a1d602 --- /dev/null +++ b/mongodb-crypt/src/main/resources/META-INF/native-image/native-image.properties @@ -0,0 +1,20 @@ +# +# Copyright 2008-present MongoDB, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +Args =\ + --initialize-at-run-time=\ + com.mongodb.internal.crypt.capi.CAPI,\ + com.sun.jna.Native,\ + com.sun.jna.Structure