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

Moved call to TryLoadGenericMetaTypeNullability #71851

Merged
merged 3 commits into from
Jul 12, 2022
Merged

Conversation

ropufu
Copy link
Contributor

@ropufu ropufu commented Jul 8, 2022

The TryLoadGenericMetaTypeNullability method was called with the same
member info but varying nullability across the entire nullability
hierarchy. Moved it one level up where nullability and member info are
aligned.

Added a test to cover this issue.

Fix #68461

The TryLoadGenericMetaTypeNullability method was called with the same
member info but varying nullability across the entire nullability
hierarchy. Moved it one level up where nullability and member info are
aligned.

Added a test to cover this issue.

Fix dotnet#68461
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jul 8, 2022
@dnfadmin
Copy link

dnfadmin commented Jul 8, 2022

CLA assistant check
All CLA requirements met.

@ghost
Copy link

ghost commented Jul 8, 2022

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

Issue Details

The TryLoadGenericMetaTypeNullability method was called with the same
member info but varying nullability across the entire nullability
hierarchy. Moved it one level up where nullability and member info are
aligned.

Added a test to cover this issue.

Fix #68461

Author: ropufu
Assignees: -
Labels:

area-System.Reflection

Milestone: -

Copy link
Member

@buyaa-n buyaa-n left a comment

Choose a reason for hiding this comment

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

Thanks you for your contribution @ropufu , looks great to me

@ropufu
Copy link
Contributor Author

ropufu commented Jul 12, 2022

Is there anything else I should do (to the PR/issue/etc.) at this time?

@buyaa-n
Copy link
Member

buyaa-n commented Jul 12, 2022

Is there anything else I should do (to the PR/issue/etc.) at this time?

Nothing for now, just waiting CI build/test finish, most likely there will not issue for merge

@buyaa-n
Copy link
Member

buyaa-n commented Jul 12, 2022

Failures related to #71986, #71233 and #71890

@buyaa-n buyaa-n merged commit 6cde4be into dotnet:main Jul 12, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Aug 11, 2022
@buyaa-n
Copy link
Member

buyaa-n commented Jan 23, 2023

/backport to release/6.0

@github-actions github-actions bot unlocked this conversation Jan 23, 2023
@github-actions
Copy link
Contributor

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/3990053331

@github-actions
Copy link
Contributor

@buyaa-n backporting to release/6.0 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Moved call to TryLoadGenericMetaTypeNullability
Using index info to reconstruct a base tree...
M	src/libraries/System.Private.CoreLib/src/System/Reflection/NullabilityInfoContext.cs
M	src/libraries/System.Runtime/tests/System/Reflection/NullabilityInfoContextTests.cs
Falling back to patching base and 3-way merge...
Auto-merging src/libraries/System.Runtime/tests/System/Reflection/NullabilityInfoContextTests.cs
CONFLICT (content): Merge conflict in src/libraries/System.Runtime/tests/System/Reflection/NullabilityInfoContextTests.cs
Auto-merging src/libraries/System.Private.CoreLib/src/System/Reflection/NullabilityInfoContext.cs
CONFLICT (content): Merge conflict in src/libraries/System.Private.CoreLib/src/System/Reflection/NullabilityInfoContext.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Moved call to TryLoadGenericMetaTypeNullability
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@github-actions
Copy link
Contributor

@buyaa-n an error occurred while backporting to release/6.0, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Reflection 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.

NullabilityInfoContext.Create throws IndexOutOfRangeException
3 participants