Skip to content

Add the capability to walk up the inheritance chain for GetMemberWithSameMetadataDefinitionAs#69057

Merged
LakshanF merged 2 commits intodotnet:mainfrom
LakshanF:AotReflectionBugFix
May 9, 2022
Merged

Add the capability to walk up the inheritance chain for GetMemberWithSameMetadataDefinitionAs#69057
LakshanF merged 2 commits intodotnet:mainfrom
LakshanF:AotReflectionBugFix

Conversation

@LakshanF
Copy link
Copy Markdown
Contributor

@LakshanF LakshanF commented May 9, 2022

Issue #67533 has a scenario where a MemberInfo is in the parent of a type and nativeAOT fails for GetMemberWithSameMetadataDefinitionAs since it only checks the current type. The fix is to walk up the chain leveraging the existing caching mechanism.

@LakshanF LakshanF requested a review from jkotas May 9, 2022 14:00
@LakshanF LakshanF requested a review from MichalStrehovsky as a code owner May 9, 2022 14:00
@ghost ghost assigned LakshanF May 9, 2022
@ghost
Copy link
Copy Markdown

ghost commented May 9, 2022

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

Issue Details

Issue #67533 has a scenario where a MemberInfo is in the parent of a type and nativeAOT fails since it only checks the current type. The fix is to walk up the chain leveraging the existing cache mechanism.

Author: LakshanF
Assignees: LakshanF
Labels:

area-System.Reflection

Milestone: -

@LakshanF LakshanF changed the title Add the capability to walk up the inheritance chain in reflection Add the capability to walk up the inheritance chain for GetMemberWithSameMetadataDefinitionAs May 9, 2022
@jkotas
Copy link
Copy Markdown
Member

jkotas commented May 9, 2022

Look for 67533 under libraries and delete the ActiveIssue attribute that is referencing it.

Comment thread src/tests/nativeaot/SmokeTests/Reflection/Reflection.cs Outdated
Copy link
Copy Markdown
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thanks!

@lewing
Copy link
Copy Markdown
Member

lewing commented May 10, 2022

This appears to have introduced #69136

@lewing
Copy link
Copy Markdown
Member

lewing commented May 10, 2022

I opened a pr to verify, feel free to resolve it some other way

jkotas pushed a commit that referenced this pull request May 10, 2022
…mberWithSameMetadataDefinitionAs (#69057)" (#69137)

This reverts commit d0d7c30.
@ghost ghost locked as resolved and limited conversation to collaborators Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants