-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Labels
enhancementProposed change to current functionalityProposed change to current functionalitygeneratorIssues binding a Java library (generator, class-parse, etc.)Issues binding a Java library (generator, class-parse, etc.)
Milestone
Description
Context: 2197579
NativeAOT doesn't like this by default. In order to convince
NativeAOT to support this, every delegate instance provided to
JniNativeMethodRegistration.Delegatemust be of a delegate type
which hasUnmanagedFunctionPointerAttribute. This coerces
NativeAOT to emit "stubs" for the referenced method, allowing things
to work with fewer changes.
For possible future NativeAOT support, every _JniMarshal_* delegate emitted by generator needs to have [UnmanagedFunctionPointer], a'la:
[UnmanagedFunctionPointer (CallingConvention.Winapi)]
delegate long _JniMarshal_PP_L (IntPtr env, IntPtr klass, long value);Metadata
Metadata
Assignees
Labels
enhancementProposed change to current functionalityProposed change to current functionalitygeneratorIssues binding a Java library (generator, class-parse, etc.)Issues binding a Java library (generator, class-parse, etc.)