-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fix attribute differences in between refs and implementations #40185
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
Conversation
|
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs
Show resolved
Hide resolved
AaronRobinsonMSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interop looks good.
jeffhandley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @safern. Sorry about the mismatches.
Oh that is hard to catch without the tooling. I just wanted to give you an FYI in case we needed to port this to P8 or just do that you know some APIs missed it in case someone reports that when trying the analyzer 😄 |
|
FYI: @eerhardt |
src/libraries/System.Text.Json/src/MatchingRefApiCompatBaseline.txt
Outdated
Show resolved
Hide resolved
|
Merging since failures are unrelated and pending pipelines are not affected by this change and I want to avoid merge conflicts or people adding attributes in other PRs and missing those and having to update this PR. |
|
@safern thanks for catching and fixing all the issues! It's great that you have improved the tooling as well! |
…#40185) * Fix attribute differences in between refs and implementations * Update APICompat version and address feedback * Fix builds * PR Feedback, include attributes for all tfms in S.T.Json ref
| public partial class JsonConverterAttribute : System.Text.Json.Serialization.JsonAttribute | ||
| { | ||
| protected JsonConverterAttribute() { } | ||
| #if NETCOREAPP && !NETCOREAPP3_0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: How come this was caught, but not the #if/def above
public static partial class JsonSerializer {
#if NETCOREAPP && !NETCOREAPP3_0
...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was just my mistake when looking at the diff and I accidentally discarded that change and then gave it a thought but forgot to redo the removal.
We noticed that a change in ApiCompat is causing ApiCompat to not check for difference in attributes. We're fixing that in: dotnet/arcade#5862
This reacts to that fix.