Skip to content

Conversation

@Kuldeep-MS
Copy link
Contributor

@Kuldeep-MS Kuldeep-MS commented May 22, 2023

Fixes #7439

Description

Removing call to XamlTyperMapper.Clear() function from finally block in compile function as the static members HasInternal is refrenced at the later part of codeflow and it is unsafe to clear the static members at this point of time. That being said, XamlTypeMapper gets clear in the next iteration of call to compile function.

Customer Impact

Application having user control with internal constructors will crash.

Regression

NA

Testing

In-progress

Risk

Assessing

Microsoft Reviewers: Open in CodeFlow

@Kuldeep-MS Kuldeep-MS requested a review from a team as a code owner May 22, 2023 05:41
@ghost ghost assigned Kuldeep-MS May 22, 2023
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label May 22, 2023
@ghost ghost requested review from dipeshmsft and singhashish-wpf May 22, 2023 05:41
@dipeshmsft
Copy link
Member

@Kuldeep-MS ,

as the static members HasInternal is refrenced at the later part of codeflow and it is unsafe to clear the static members at this point of time.

Where does this happen ??

@dipeshmsft dipeshmsft merged commit 05621fc into dotnet:main Jun 28, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean build produces empty GeneratedInternalTypeHelper.g.cs

2 participants