-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CustomAttribute with Array Properties sets nulls incorrectly #31195
Comments
The signature of
https://github.com/dotnet/coreclr/blob/master/src/vm/customattribute.cpp#L1004-L1015 |
Thanks for the report and diagnosis. Are either of you interested in offering a PR? |
@danmosemsft No, but maybe someone else wants to do it. |
@JamesAshworth ? 😃 |
@danmosemsft Not an area I'm confident enough with I'm afraid - not looked at this code before, and haven't got the time at the moment to get familiar. |
Thanks @JamesAshworth not a problem. |
Moving to future based on priority + schedule. |
An attribute with two array properties does not behave as expected if the first array property is set to a value and the second array property is set to null. If the two arrays are of the same type, the second property is set to the same value as the first property. If the two types are incompatible, an exception is thrown when the attribute is constructed, stating that the second property cannot be found.
Attached are two variations on a simple program that replicates each issue.
Same Type
Incompatible Types
The text was updated successfully, but these errors were encountered: