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

[release/9.0-staging] Support generic fields in PersistedAssemblyBuilder #110839

Open
wants to merge 5 commits into
base: release/9.0-staging
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 19, 2024

Backport of #110372 to release/9.0-staging

/cc @steveharter

Customer Impact

  • Customer reported
  • Found internally

The new PersistableAssemblyBuilder functionality added in v9 has a bug where generic fields do not generate the proper IL, causing a generic field to be generated as non-generic.

Regression

  • Yes
  • No

This was new functionality added in v9.

Testing

The original author's repro was verified and a test added that inspects the generated field's metadata to make sure the field is generic.

Risk

Low; the fix is fairly straightforward and follows other similar cases where we need to use metadata from open generic types instead of the closed generic type.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-reflection-emit
See info in area-owners.md if you want to be subscribed.

@teo-tsirpanis teo-tsirpanis added this to the 9.0.x milestone Dec 19, 2024
@steveharter steveharter self-assigned this Dec 27, 2024
@steveharter steveharter added the Servicing-consider Issue for next servicing release review label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Reflection.Emit Servicing-consider Issue for next servicing release review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants