Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[generator] Extend skipInvokerMethods support to interfaces. (#1202) #1203

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

jonpryor
Copy link
Member

@jonpryor jonpryor commented Mar 6, 2024

Context: 73ebad2
Context: xamarin/AndroidX#779

Commit 73ebad2 added support for the metadata attribute //class[@skipInvokerMethods], which allowed us to suppress generation of invoker methods for a class.

The AndroidX Media3 binding in xamarin/AndroidX#779 hits a similar issue wherein we generate incorrect generics on an invoker type. However, this is an invoker type for an interface, not a class.

Extend our skipInvokerMethods support so that it can be used as //interface[@skipInvokerMethods] as well.

Context: 73ebad2
Context: xamarin/AndroidX#779

Commit 73ebad2 added support for the metadata attribute
`//class[@skipInvokerMethods]`, which allowed us to suppress generation
of invoker methods for a class.

The AndroidX Media3 binding in xamarin/AndroidX#779 hits a similar
issue wherein we generate incorrect generics on an invoker type.
However, this is an invoker type for an *`interface`*, not a `class`.

Extend our `skipInvokerMethods` support so that it can be used as
`//interface[@skipInvokerMethods]` as well.
jonpryor added a commit to dotnet/android that referenced this pull request Mar 6, 2024
Context: dotnet/java-interop#1203

Does It Build™?

Changes: dotnet/java-interop@bec0326...e557044

  * dotnet/java-interop@e557044f: [generator] Extend `skipInvokerMethods` support to interfaces. (dotnet/java-interop#1202)
Copy link
Contributor

@jpobst jpobst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it builds with XA, looks good.

@jonpryor jonpryor merged commit 3c5cf34 into release/8.0.1xx Mar 7, 2024
4 checks passed
@jonpryor jonpryor deleted the dev/jonp/cp-1202 branch March 7, 2024 12:10
jonpryor added a commit to dotnet/android that referenced this pull request Mar 7, 2024
jonpryor added a commit to dotnet/android that referenced this pull request Mar 7, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants