Skip to content

Fix failure in System.Reflection.Tests.GetTypeTests.GetType_InvalidAssemblyName #114289

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

Merged
merged 1 commit into from
Apr 5, 2025

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Apr 4, 2025

Apply the fix to NativeAOT TypeNameResolver too

Fixes #114288

…semblyName

Apply the fix to NativeAOT TypeNameResolver too

Fixes dotnet#114288
@Copilot Copilot AI review requested due to automatic review settings April 4, 2025 23:24
@jkotas jkotas requested a review from MichalStrehovsky as a code owner April 4, 2025 23:24
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/coreclr/nativeaot/System.Private.CoreLib/src/System/Reflection/TypeNameResolver.NativeAot.cs:84

  • Verify that removing the check for topLevelAssembly is intentional. With this change, if topLevelAssembly is null but parsed.AssemblyName is present, an exception will be thrown, which may differ from previous behavior.
else if (parsed.AssemblyName is not null)

Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

@jkotas jkotas merged commit 5854863 into dotnet:main Apr 5, 2025
97 checks passed
@jkotas jkotas deleted the issue114288 branch April 5, 2025 01:25
@adamsitnik
Copy link
Member

@jkotas thank you for providing the fix !

@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2025
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.

NativeAOT failure in System.Reflection.Tests.GetTypeTests.GetType_InvalidAssemblyName
3 participants