Skip to content

Conversation

@davidwrighton
Copy link
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
Contributor

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

Copy link
Contributor

Copilot AI left a comment

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

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants