You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UnsafeAccessor throws MissingFieldException on generic field (T) #92633
changed the title [-]`UnsafeAccessor` throws `MissingFieldException` on generic array field (`T[]`)[/-][+]`UnsafeAccessor` throws `MissingFieldException` on generic field (`T`)[/+]on Sep 26, 2023
Boo. For my original implementation of the signature match this worked. When I switched to the more robust, but stricter, built-in element compare this support was lost. Le sigh. There is little chance this sort of fix meets the servicing bar. I will take a little bit to try and make it work, but this is likely a .NET 9 fix.
I'm going to close this as duplicate since this work will be included in #89439. I've already got the static/instance fields working and have re-enabled the failing tests in my working branch.
Activity
[-]`UnsafeAccessor` throws `MissingFieldException` on generic array field (`T[]`)[/-][+]`UnsafeAccessor` throws `MissingFieldException` on generic field (`T`)[/+]jkotas commentedon Sep 26, 2023
cc @AaronRobinsonMSFT
AaronRobinsonMSFT commentedon Sep 26, 2023
Boo. For my original implementation of the signature match this worked. When I switched to the more robust, but stricter, built-in element compare this support was lost. Le sigh. There is little chance this sort of fix meets the servicing bar. I will take a little bit to try and make it work, but this is likely a .NET 9 fix.
AaronRobinsonMSFT commentedon Sep 26, 2023
Yep, this is a future fix. If the
Tis anywhere in the field or method signature this is going to fail.Let me add some tests for this.
AaronRobinsonMSFT commentedon Sep 26, 2023
With how this is currently implemented there is some overlap with #89439. The core issue being how we parse and compare signatures.
AaronRobinsonMSFT commentedon Sep 26, 2023
I've added disabled tests in #92657 and fixed some issues with NAOT.
AaronRobinsonMSFT commentedon Feb 17, 2024
I'm going to close this as duplicate since this work will be included in #89439. I've already got the static/instance fields working and have re-enabled the failing tests in my working branch.