Skip to content

Conversation

@jpobst
Copy link
Contributor

@jpobst jpobst commented Jan 13, 2020

Context: #556
Companion XA PR: dotnet/android#4119

Call new JNIEnv.NewArray (...) overloads that explicitly take unsigned types instead of doing JNIEnv.NewArray ((int[])(object)value. This allows users to get a linker time error if they are using an older Java.Interop.dll that does not support unsigned types instead of a runtime error.

@jpobst jpobst marked this pull request as ready for review January 15, 2020 15:09
@jpobst jpobst requested a review from jonpryor January 15, 2020 15:10
@jonpryor jonpryor merged commit 99cf719 into master Jan 27, 2020
@jonpryor jonpryor deleted the unsigned-fix branch January 27, 2020 16:07
jonpryor pushed a commit that referenced this pull request Jan 27, 2020
Fixes: #556
Context: dotnet/android#4119

Call new `JNIEnv.NewArray(...)` overloads that explicitly take
unsigned types instead of using the signed counterparts such as
`JNIEnv.NewArray((int[])(object)value`.

This allows users to get a linker time error if they are using an
older Java.Interop.dll that does not support unsigned types, instead
of a runtime error.
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 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.

4 participants