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

MethodInfo.MakeGenericMethod() used for testing throws MissingRuntimeArtifactException on NativeAOT leg #73811

Closed
buyaa-n opened this issue Aug 11, 2022 · 1 comment

Comments

@buyaa-n
Copy link
Contributor

buyaa-n commented Aug 11, 2022

MethodInfo.MakeGenericMethod() used for testing throws MissingRuntimeArtifactException on NativeAOT leg

Found in: Linux arm64 Release NativeAOT and windows arm64 Release NativeAOT legs
Log:

System.Reflection.MissingRuntimeArtifactException : MakeGenericMethod() cannot create this generic method instantiation because no code was generated for it: 'System.Reflection.Tests.TypeWithNotNullContext.GenericMethodWithPointers<System.Single>(System.Single*,System.Nullable<System.Single>*)'.
   at System.Reflection.Runtime.MethodInfos.RuntimeNamedMethodInfo`1.GetUncachedMethodInvoker(RuntimeTypeInfo[], MemberInfo) + 0x30
   at System.Reflection.Runtime.MethodInfos.RuntimeNamedMethodInfo`1.MakeGenericMethod(Type[]) + 0x1c0
   at System.Reflection.Tests.NullabilityInfoContextTests.GenericMethodWithPointersTest() + 0x78
   at System.Runtime!<BaseAddress>+0x1a12394
   at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xd8
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 11, 2022
@jkotas
Copy link
Member

jkotas commented Aug 12, 2022

This is by design: #73520 (comment)

@jkotas jkotas closed this as completed Aug 12, 2022
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Aug 12, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants