Skip to content

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

Closed

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

Activity

  1. ghost added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Jul 18, 2023
  2. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Jul 18, 2023
  3. davidwrighton commented on Jul 18, 2023

    @davidwrighton
    MemberAuthor

    This is a new test as of PR #89061

  4. removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Jul 18, 2023
  5. davidwrighton commented on Jul 19, 2023

    @davidwrighton
    MemberAuthor

    Dup of #89157

  6. ghost locked as resolved and limited conversation to collaborators on Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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