Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@davidwrighton

Description

@davidwrighton

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions