Skip to content

[tests] Restore GetObjectArray coverage#12222

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-fix-coreclr-object-arrays
Jul 24, 2026
Merged

[tests] Restore GetObjectArray coverage#12222
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-fix-coreclr-object-arrays

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

The JNIEnv.GetObjectArray regression test was globally ignored after a historical CoreCLR failure in #10973, leaving primitive conversion, Java peer identity, and mixed object-array marshaling uncovered on every runtime. The focused test now passes on current CoreCLR Release, so this restores it and adds clearer assertion diagnostics for peer identity and numeric conversion failures.

Remove the stale global ignore now that the focused CoreCLR Release test
passes, and improve diagnostics for peer identity and numeric conversion.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1314df44-a447-444a-8b89-3867ce69224e
Copilot AI review requested due to automatic review settings July 23, 2026 21:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Restores coverage for JNIEnv.GetObjectArray by re-enabling the previously ignored regression test and improving assertion diagnostics around Java peer identity and numeric conversion behavior.

Changes:

  • Removes the global ignore on GetObjectArray() (previously disabled due to historical CoreCLR failures).
  • Adds a dedicated NUnit category (JNIObjectArray) for targeted execution/filtering.
  • Improves assertion diagnostics for context peer identity and longint conversion results.

@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label Jul 24, 2026
@jonathanpeppers
jonathanpeppers merged commit 2c84312 into main Jul 24, 2026
45 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-fix-coreclr-object-arrays branch July 24, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JnienvArrayMarshaling.GetObjectArray fails on CoreCLR with emulator 36.4.10

3 participants