dotnet / java-interop

Java.Interop provides open-source bindings of Java's Java Native Interface (JNI) for use with .NET managed languages such as C#
Other
189 stars 48 forks source link

[generator] Extend `skipInvokerMethods` support to interfaces. #1202

Closed jpobst closed 4 months ago

jpobst commented 4 months ago

Context: https://github.com/xamarin/java.interop/pull/1086

https://github.com/xamarin/java.interop/pull/1086 added the metadata attribute skipInvokerMethods to allow us to suppress generation of invoker methods for a class.

The AndroidX Media3 binding hits an issue where we generate incorrect generics in an invoker type. However this is an invoker type for an interface instead of a class.

Extend our skipInvokerMethods support to cover interfaces as well.