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] Support generic fields in PersistedAssemblyBuilder #111467

Merged
merged 5 commits into from
Jan 15, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 15, 2025

Important: This was already approved and merged in release/9.0-staging. This is only a cherry-pick to release/9.0.

Backport of #110839 to release/9.0

/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.

@carlossanlop carlossanlop changed the title [release/9.0] [release/9.0-staging] Support generic fields in PersistedAssemblyBuilder [release/9.0] Support generic fields in PersistedAssemblyBuilder Jan 15, 2025
Copy link
Member

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

This was already approved and merged in staging. This is only a cherry-pick.

cc @ericstj @steveharter

@carlossanlop carlossanlop added the Servicing-approved Approved for servicing release label Jan 15, 2025
@carlossanlop carlossanlop added this to the 9.0.2 milestone Jan 15, 2025
@carlossanlop carlossanlop merged commit 6a86517 into release/9.0 Jan 15, 2025
27 of 77 checks passed
@carlossanlop carlossanlop deleted the backport/pr-110839-to-release/9.0 branch January 15, 2025 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants