Skip to content

Conversation

@jonpryor
Copy link
Contributor

@jonpryor jonpryor commented Mar 6, 2024

Context: 73ebad2
Context: dotnet/android-libraries#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 dotnet/android-libraries#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: dotnet/android-libraries#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 dotnet/android-libraries#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
@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.

3 participants