You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[NativeAOT] Support invoking string and array constructors on existing objects #134900
The reflection tests ConstructorInfoTests.Invoke_StringConstructorWithExistingInstance and Invoke_ArrayConstructorWithExistingInstance are currently limited to CoreCLR because NativeAOT does not support invoking string and array pseudo-constructors against existing objects.
NativeAOT should match the expected reflection behavior for these constructor handles. The tests exercise the existing-object path and expect the runtime's documented NotSupportedException behavior to be surfaced through TargetInvocationException.
Reproduction Steps
Run these tests from src/libraries/System.Runtime/tests/System.Reflection.Tests/ConstructorInfoTests.cs on NativeAOT:
Activity
dotnet-policy-service commentedon Sep 29, 2026
Tagging subscribers to this area: @steveisok, @dotnet/area-system-reflection
See info in area-owners.md if you want to be subscribed.
Match CoreCLR behavior for NativeAOT string and array constructor inv…