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

Loader\classloader\StaticVirtualMethods\RegressionTests\GetInterfaceMapWithStaticVirtualsAndConstraints fails in NativeAOT #89122

Closed
davidwrighton opened this issue Jul 18, 2023 · 3 comments
Labels
area-NativeAOT-coreclr untriaged New issue has not been triaged by the area owner

Comments

@davidwrighton
Copy link
Member

Description

Test fails as it can't generate the interface map as it wasn't compiled.

Reproduction Steps

Run Loader\classloader\StaticVirtualMethods\RegressionTests\GetInterfaceMapWithStaticVirtualsAndConstraints

Expected behavior

Pass

Actual behavior

Unhandled Exception: System.NotSupportedException: This object cannot be invoked because no code was generated for it: 'GetInterfaceMapWithStaticVirtualsAndConstraints.Outer1+IStatics[System.Int32].MStatic()'.    at System.Reflection.Runtime.MethodInfos.RuntimeNamedMethodInfo1.GetUncachedMethodInvoker(RuntimeTypeInfo[], MemberInfo) + 0x2f
at Internal.Reflection.Execution.ExecutionEnvironmentImplementation.GetInterfaceMap(Type, Type, MethodInfo[]&, MethodInfo[]&) + 0x95
at System.Reflection.Runtime.TypeInfos.RuntimeTypeInfo.GetInterfaceMap(Type) + 0x11a
at GetInterfaceMapWithStaticVirtualsAndConstraints.Program.Main() + 0xd0
at GetInterfaceMapWithStaticVirtualsAndConstraints!<BaseAddress>+0x1e475c

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 18, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jul 18, 2023
@davidwrighton
Copy link
Member Author

This is a new test as of PR #89061

@ghost
Copy link

ghost commented Jul 18, 2023

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

Issue Details

Description

Test fails as it can't generate the interface map as it wasn't compiled.

Reproduction Steps

Run Loader\classloader\StaticVirtualMethods\RegressionTests\GetInterfaceMapWithStaticVirtualsAndConstraints

Expected behavior

Pass

Actual behavior

Unhandled Exception: System.NotSupportedException: This object cannot be invoked because no code was generated for it: 'GetInterfaceMapWithStaticVirtualsAndConstraints.Outer1+IStatics[System.Int32].MStatic()'.    at System.Reflection.Runtime.MethodInfos.RuntimeNamedMethodInfo1.GetUncachedMethodInvoker(RuntimeTypeInfo[], MemberInfo) + 0x2f
at Internal.Reflection.Execution.ExecutionEnvironmentImplementation.GetInterfaceMap(Type, Type, MethodInfo[]&, MethodInfo[]&) + 0x95
at System.Reflection.Runtime.TypeInfos.RuntimeTypeInfo.GetInterfaceMap(Type) + 0x11a
at GetInterfaceMapWithStaticVirtualsAndConstraints.Program.Main() + 0xd0
at GetInterfaceMapWithStaticVirtualsAndConstraints!<BaseAddress>+0x1e475c

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Author: davidwrighton
Assignees: -
Labels:

untriaged, area-NativeAOT-coreclr, needs-area-label

Milestone: -

@davidwrighton davidwrighton removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 18, 2023
@davidwrighton
Copy link
Member Author

Dup of #89157

@ghost ghost locked as resolved and limited conversation to collaborators Aug 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-coreclr untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant