Fix bugs in ResourceCodeDomSerializer.SerializationResourceManager#9642
Merged
Tanya-Solyanik merged 2 commits intodotnet:mainfrom Aug 14, 2023
Merged
Conversation
b32ec97 to
ce56fa6
Compare
ce56fa6 to
b775f92
Compare
Member
Contributor
Author
|
Before #8332, |
Contributor
|
@halgab - is it possible to add a unit test for this scenario? |
Contributor
Author
|
I agree that would be ideal, but right now code coverage of serializers is so scarce I wouldn't really know where to start... |
Member
|
We can track test debt under separate issue. @Tanya-Solyanik, you good with changes here? |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As discussed in #9457.
#8332 introduced bugs in
ResourceCodeDomSerializer.SerializationResourceManager, in methodGetResourceSet. When we fail to get a resource reader, the original code used to return a resource set for the invariant culture, and null otherwise. After #8332,,nullthe first time we fill theResourceTablecacheResourceTablecache with a static dictionary, which looks like a pretty big issueThese bugs were introduced in .Net 8 and we still have a chance to fix them before the release
@dreddy-work, @elachlan
Microsoft Reviewers: Open in CodeFlow