Skip to content
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

TraceInfo is gathered only once when throwing a Throwable #17439

Open
dlangBugzillaToGithub opened this issue Feb 15, 2022 · 1 comment
Open
Labels

Comments

@dlangBugzillaToGithub
Copy link

muhammed.yucel reported this on 2022-02-15T05:28:24Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=22774

Description

One can prefer use of single `Exception` instance to prevent creating new Exception objects and continue `throw`ing that single instance. When this approach is preferred, Throwable trace info shows trace of the first `throw` of that exception, which leads to invalid information for following throws.
@dlangBugzillaToGithub
Copy link
Author

dlang-bot commented on 2022-02-15T05:32:54Z

@mkykadir created dlang/druntime pull request #3742 "fix Issue 22774 - TraceInfo is gathered only once when throwing a Thr…" fixing this issue:

- fix Issue 22774 - TraceInfo is gathered only once when throwing a Throwable
  
  Update `info` during every `throw`

https://github.com/dlang/druntime/pull/3742

@thewilsonator thewilsonator added the Druntime Specific to druntime label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants