-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Avoiding discarding exception details of MissingMethodException
in RuntimeType.CreateInstanceImpl
#108876
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
Avoiding discarding exception details of MissingMethodException
in RuntimeType.CreateInstanceImpl
#108876
Conversation
…issingMethodException`)
…ingMethodException`)
src/coreclr/System.Private.CoreLib/src/System/RuntimeType.CoreCLR.cs
Outdated
Show resolved
Hide resolved
src/coreclr/System.Private.CoreLib/src/System/RuntimeType.CoreCLR.cs
Outdated
Show resolved
Hide resolved
…github.com/Takym/runtime into AvoidingDiscardingExceptionDetails/2024_10
…hodException properly.
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.
Looks good; thanks!
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/ActivatorTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/ActivatorTests.cs
Show resolved
Hide resolved
…/ActivatorTests.cs Co-authored-by: Steve Harter <steveharter@users.noreply.github.com>
…/ActivatorTests.cs Co-authored-by: Steve Harter <steveharter@users.noreply.github.com>
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/ActivatorTests.cs
Outdated
Show resolved
Hide resolved
…/ActivatorTests.cs Co-authored-by: kasperk81 <83082615+kasperk81@users.noreply.github.com>
…hrowsMissingMethodException`)
…hrowsMissingMethodException`)
@Takym just a heads-up: we’re not required to keep the PR branch in sync with the latest changes in main. Once the review starts, the area owners will handle merging main if they deem it necessary (usually depending on how old the branch is). Given that this is a busy repository, there's a high chance that something will merge into main before the CI run even completes so we always see the Update button. |
Takym the changes look OK to me; do you plan any more commits? If not, I'll merge pending tests. |
I think this PR is completed. |
I found the code that
try { ... } catch (MissingMethodException) { invokeMethod = null; }
and immediately later, re-throwingMissingMethodException
ifinvokeMethod
was null. This code removes stack trace information. So, I think debugging or analyzing gets difficult. I kept the code throwingMissingMethodException
becausebinder.BindToMethod
may return null.