Skip to content

Conversation

@jonathanpeppers
Copy link
Member

@jonathanpeppers jonathanpeppers commented Sep 22, 2025

Fixes: #10509
Changes: dotnet/java-interop@19be370...ef82a07

Update an existing test for #10509.

@jonathanpeppers jonathanpeppers changed the title Test https://github.com/dotnet/java-interop/pull/1366 Bump to dotnet/java-interop/main@ef82a07a Sep 23, 2025
@jonathanpeppers jonathanpeppers marked this pull request as ready for review September 23, 2025 16:27
@jonathanpeppers
Copy link
Member Author

There is still a warning to fix in dotnet/java.interop:

MainActivity.cs(24,2): warning CA1416: This call site is reachable on: 'Android' 21.0 and later. 'ListView.Adapter.set' is unsupported on: 'android' 15.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Let me see if the new test works in .NET 10, where I reverted changes.

@jonathanpeppers jonathanpeppers marked this pull request as draft September 23, 2025 19:19
jonathanpeppers added a commit to dotnet/java-interop that referenced this pull request Dec 16, 2025
…e has getter-only

Context: dotnet/android#10510 (comment)

When a derived class has a property setter with `ApiRemovedSince`, but
the base class only has a getter (no setter), clear the setter's
`ApiRemovedSince` if the base getter is not removed. Also handle
standalone `setXxx` methods that correspond to base class properties.

Fixes `CA1416` warning for `ListView.Adapter.set` being incorrectly
marked as unsupported on `android15.0`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect CA1416 warnings

1 participant