Skip to content

[Java.Interop] Fix NRT warnings introduced by targeting 'net6.0'. #839

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

Closed
wants to merge 1 commit into from

Conversation

jpobst
Copy link
Contributor

@jpobst jpobst commented May 13, 2021

In #829 we began targeting net6.0 instead of netcoreapp3.1. This framework contains additional nullable annotations that resulted in new warnings.

One problem with fixing these is that we needed to make type not-nullable here, which means removing the default type. However removing the default type meant the parameter had to be moved before other parameter(s) with a default type.

https://github.com/xamarin/java.interop/blob/main/src/Java.Interop/Java.Interop/JniValueMarshaler.cs#L145

I am not very familiar with this code, so I do not know if there are side-effects of changing this, or if this is considered "public API" which cannot be changed?

@jpobst jpobst closed this May 13, 2021
@jpobst jpobst deleted the nrt-warnings branch May 13, 2021 21:13
@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.

1 participant