Repository navigation
[release/11.0.1xx-rc2] Fix JNI jchar marshalling on CoreCLR - #12881
Merged
jonathanpeppers merged 1 commit intoSep 23, 2026
Merged
jonathanpeppers merged 1 commit into
jonathanpeppers merged 1 commit into
Conversation
## Changes - marshal JNI `jchar` values as `ushort` at the unmanaged function-pointer boundary while preserving the public managed `char` API - add on-device return-value regressions for `Java.Lang.String.CharAt()` and `SpannableStringBuilder.CharAt()` across representative UTF-16 values, including `U+FFFF` to cover unsigned 16-bit behavior - add an on-device field regression covering `U+FFFF` input through `SetCharField` and output through `GetCharField` ## Validation - reproduced both `CharAt()` failures on Android API 37 with CoreCLR: expected `U+00E4`, received `U+FFFD` - verified both `CharAt()` regression tests pass after the fix, including `U+FFFF` - verified the `U+FFFF` char-field write/read regression passes on CoreCLR - rebuilt `Java.Interop`, `Mono.Android`, and the final Mono.Android test project Fixes #12865 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
github-actions
Bot
requested review from
jonathanpeppers and
simonrozsival
as code owners
September 22, 2026 21:44
simonrozsival
approved these changes
Sep 22, 2026
jonathanpeppers
deleted the
backport/pr-12870-to-release/11.0.1xx-rc2
branch
September 23, 2026 01:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #12870 to release/11.0.1xx-rc2
/cc @jonathanpeppers