Skip to content

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

Merged
jkotas merged 1 commit intodotnet:mainfrom
jkotas:issue114288
Apr 5, 2025
Merged

Fix failure in System.Reflection.Tests.GetTypeTests.GetType_InvalidAssemblyName#114289
jkotas merged 1 commit intodotnet:mainfrom
jkotas:issue114288

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 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 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)

@dotnet-policy-service
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

4 participants