forked from java-native-access/jna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add native-image support (java-native-access#510)
Motivation: In order to support `native-image`, the project has to provide the corresponding configuration for reflection, JNI and resources. Modifications: - Module `codec-native-quic`: Add profile `native-image-agent` for generating `native-image` configuration - New module `testsuite-native-image`: Add profiles `native-image-quic-server`/`native-image-quic-client` for testing the `native-image` configuration Result: Fixes java-native-access#464
- Loading branch information
Showing
8 changed files
with
942 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 117 additions & 0 deletions
117
...ETA-INF/native-image/io.netty.incubator/netty-incubator-codec-native-quic/jni-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
[ | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"[B" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"[Ljava.lang.Object;" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"[Ljava.lang.String;" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"[[B" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSL" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSLCertificateCallbackTask", | ||
"fields":[ | ||
{"name":"chain"}, | ||
{"name":"key"} | ||
], | ||
"methods":[{"name":"<init>","parameterTypes":["long","byte[]","byte[][]","java.lang.String[]","io.netty.incubator.codec.quic.BoringSSLCertificateCallback"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSLCertificateVerifyCallbackTask", | ||
"methods":[{"name":"<init>","parameterTypes":["long","byte[][]","java.lang.String","io.netty.incubator.codec.quic.BoringSSLCertificateVerifyCallback"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSLHandshakeCompleteCallback", | ||
"methods":[{"name":"handshakeComplete","parameterTypes":["long","byte[]","java.lang.String","java.lang.String","byte[]","byte[][]","long","long","byte[]","boolean"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSLKeylogCallback", | ||
"methods":[{"name":"logKey","parameterTypes":["long","java.lang.String"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSLNativeStaticallyReferencedJniMethods" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSLPrivateKeyMethodDecryptTask", | ||
"methods":[{"name":"<init>","parameterTypes":["long","byte[]","io.netty.incubator.codec.quic.BoringSSLPrivateKeyMethod"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSLPrivateKeyMethodSignTask", | ||
"methods":[{"name":"<init>","parameterTypes":["long","int","byte[]","io.netty.incubator.codec.quic.BoringSSLPrivateKeyMethod"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSLPrivateKeyMethodTask", | ||
"fields":[{"name":"resultBytes"}] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSLSessionCallback", | ||
"methods":[{"name":"newSession","parameterTypes":["long","long","long","byte[]","boolean","byte[]"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSLTask", | ||
"fields":[ | ||
{"name":"complete"}, | ||
{"name":"returnValue"} | ||
] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.BoringSSLTlsextServernameCallback", | ||
"methods":[{"name":"selectCtx","parameterTypes":["long","java.lang.String"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.Quiche" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.QuicheLogger", | ||
"methods":[{"name":"log","parameterTypes":["java.lang.String"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"io.netty.incubator.codec.quic.QuicheNativeStaticallyReferencedJniMethods" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"java.lang.Boolean", | ||
"methods":[ | ||
{"name":"getBoolean","parameterTypes":["java.lang.String"] }, | ||
{"name":"valueOf","parameterTypes":["boolean"] } | ||
] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"java.lang.Integer", | ||
"methods":[{"name":"<init>","parameterTypes":["int"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"java.lang.Object" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"io.netty.incubator.codec.quic.Quiche"}, | ||
"name":"java.lang.String" | ||
} | ||
] |
Oops, something went wrong.