Skip to content

Fix ILVerify validation of static virtual method delegates - #133285

Merged
jkotas merged 4 commits into
dotnet:mainfrom
pkuyo:fix-ilverify-133238
Sep 7, 2026
Merged

Fix ILVerify validation of static virtual method delegates#133285
jkotas merged 4 commits into
dotnet:mainfrom
pkuyo:fix-ilverify-133238

Conversation

@pkuyo

@pkuyo pkuyo commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #133238

Exclude static methods from the non-final virtual method check during delegate creation. Reject unconstrained ldftn on abstract methods and add regression tests.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Sep 5, 2026
@github-actions github-actions Bot added the area-Tools-ILVerification Issues related to ilverify tool and IL verification in general label Sep 5, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/jit-contrib
See info in area-owners.md if you want to be subscribed.

Comment thread src/coreclr/tools/ILVerification/ILImporter.Verify.cs
Comment thread src/coreclr/tools/ILVerification/ILImporter.Verify.cs
Comment thread src/coreclr/tools/ILVerification/ILImporter.Verify.cs Outdated
Co-authored-by: Jan Kotas <jkotas@microsoft.com>

@jkotas jkotas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@jkotas
jkotas merged commit 810cc66 into dotnet:main Sep 7, 2026
126 of 129 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Tools-ILVerification Issues related to ilverify tool and IL verification in general community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ILVerify reports LdftnNonFinalVirtual error when adding static virtual interface method as event handler

2 participants