[Issue 22774] New: TraceInfo is gathered only once when creating a Throwable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 15 05:28:24 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22774
Issue ID: 22774
Summary: TraceInfo is gathered only once when creating a
Throwable
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: muhammed.yucel at bosagora.io
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.
--
More information about the Digitalmars-d-bugs
mailing list