-
Couldn't load subscription status.
- Fork 5.2k
Closed
Labels
area-VM-reflection-monoReflection issues specific to MonoVMReflection issues specific to MonoVMruntime-monospecific to the Mono runtimespecific to the Mono runtime
Milestone
Description
In the Core runtime, a FieldAccessException is thrown.
Found by newly added tests in #97784
Repro
FieldInfo fieldInfo = typeof(MyStruct).GetField(nameof(MyStruct.fcnPtr));
fieldInfo.SetValue(new MyStruct(), (IntPtr)200);
// Result: assert or does nothing
public struct MyStruct
{
public unsafe delegate*<void> fcnPtr = (delegate*<void>)44;
public MyStruct() { }
}Asserts include
type 0x1b not handled in ves_icall_FieldInfo_SetValueInternal
type 0x1b not handled in mono_field_get_value_object
lambdageek
Metadata
Metadata
Assignees
Labels
area-VM-reflection-monoReflection issues specific to MonoVMReflection issues specific to MonoVMruntime-monospecific to the Mono runtimespecific to the Mono runtime