Skip to content

Module reflection tests fail on NativeAOT Apple mobile #126730

@kotlarmilos

Description

@kotlarmilos

Several ModuleTests in System.Runtime.Tests fail on NativeAOT Apple mobile. The tests call Module.GetField, Module.GetFields, Module.GetMethod, and Module.GetMethods, which return empty or null results because NativeAOT does not keep module-level metadata.

Failing tests (System/Reflection/ModuleTests.cs):

  • ModuleTests.GetField
  • ModuleTests.GetFields
  • ModuleTests.GetMethod
  • ModuleTests.GetMethod_AmbiguousMatch
  • ModuleTests.GetMethods

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions