Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require AddExplicitInterfaceImplementation for adding a type that implements member explicitly #73206

Open
wants to merge 2 commits into
base: release/dev17.10
Choose a base branch
from

Conversation

tmat
Copy link
Member

@tmat tmat commented Apr 24, 2024

Adding a new row to InterfaceImpl table may case AV on .NET Framework runtime. Report rude edit to prevent that from happening.
The rude edit is reported when AddExplicitInterfaceImplementation runtime capability is not present.

Contributes to fix of https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1452066.
Debugger part: https://devdiv.visualstudio.com/DevDiv/_git/Concord/pullrequest/546202

@tmat tmat requested a review from a team as a code owner April 24, 2024 01:04
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Interactive untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 24, 2024
@tmat
Copy link
Member Author

tmat commented Apr 24, 2024

@davidwengier ptal

Copy link
Contributor

@davidwengier davidwengier left a comment

Choose a reason for hiding this comment

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

Given the number of tests that have the new capability, I'm surprised this hasn't come up in the past. Or maybe it has :)

@tmat
Copy link
Member Author

tmat commented Apr 24, 2024

@davidwengier The tests do not actually apply the change. Even if they did, the AV is from .NET Framework and it does not occur if the change is the first applied change.

@davidwengier
Copy link
Contributor

Yeah, I just took the number of tests as an indication of the number of scenarios that could cause an AV. If the ordering is also important, then that could explain it for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Interactive untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants