Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Make BindingFlagsAreUnsupported more precise - #2296

Merged
MichalStrehovsky merged 2 commits into
dotnet:mainfrom
MichalStrehovsky:bf
Sep 29, 2021
Merged

MichalStrehovsky merged 2 commits into
dotnet:mainfrom
MichalStrehovsky:bf

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

IgnorableBindingFlags are all new - we wouldn't consider them supported in the past. I'm also adding BindingFlags.ExactBinding in the first group - that one was considered unsupported in the past but this flag just disallows implicit widening and similar things that don't affect our binding logic (I don't think we would ever want to go in that territory).

`IgnorableBindingFlags` are all new - we wouldn't consider them supported in the past. I'm also adding `BindingFlags.ExactBinding` in the first group - that one was considered unsupported in the past but this flag just disallows implicit widening and similar things that don't affect our binding logic (I don't think we would ever want to go in that territory).

@vitek-karas vitek-karas 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.

Either in this PR or in a subsequent one we should add tests for at least some of these cases.

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

Tweaked the existing tests since they were failing due to InvokeMethod being recognized and added a new test that covers an unrecognized flag.

@MichalStrehovsky
MichalStrehovsky merged commit d31e26e into dotnet:main Sep 29, 2021
agocke added a commit that referenced this pull request Oct 21, 2021
agocke added a commit to agocke/linker that referenced this pull request Oct 28, 2021
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
`IgnorableBindingFlags` are all new - we wouldn't consider them supported in the past. I'm also adding `BindingFlags.ExactBinding` in the first group - that one was considered unsupported in the past but this flag just disallows implicit widening and similar things that don't affect our binding logic (I don't think we would ever want to go in that territory).

Commit migrated from dotnet/linker@d31e26e
agocke added a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
agocke added a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants