Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[clr-interp] Fix abstract newobj test - #122624

#122624
Merged
davidwrighton merged 1 commit into
dotnet:maindotnet/runtime:mainfrom
davidwrighton:fix_abstract_newobj_testdavidwrighton/runtime:fix_abstract_newobj_testCopy head branch name to clipboard
Dec 18, 2025
Merged

[clr-interp] Fix abstract newobj test#122624
davidwrighton merged 1 commit into
dotnet:maindotnet/runtime:mainfrom
davidwrighton:fix_abstract_newobj_testdavidwrighton/runtime:fix_abstract_newobj_testCopy head branch name to clipboard

Conversation

@davidwrighton

Copy link
Copy Markdown
Member
  • Fix a test which should be throwing InvalidOperationException at call to newobj time, but calling into a JIT interface api just like the JIT

Fixes Loader/classloader/generics/Instantiation/Negative/abstract01

- Fix a test which should be throwing InvalidOperationException at call to newobj time, but calling into a JIT interface api just like the JIT

Fixes Loader/classloader/generics/Instantiation/Negative/abstract01
Copilot AI review requested due to automatic review settings December 17, 2025 22:48
@github-actions github-actions Bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 17, 2025
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @BrzVlad, @janvorli, @kg
See info in area-owners.md if you want to be subscribed.

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

This PR fixes a test failure in the interpreter by ensuring that attempting to instantiate an abstract class throws InvalidOperationException at the time of newobj, matching the JIT behavior.

Key Changes:

  • Added a call to getNewHelper API for newobj operations in the interpreter's EmitCall method to trigger validation checks

Comment thread src/coreclr/interpreter/compiler.cpp
Comment thread src/coreclr/interpreter/compiler.cpp
@jkotas jkotas removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 17, 2025
@davidwrighton
davidwrighton merged commit 0b7382a into dotnet:main Dec 18, 2025
105 of 107 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.