File tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/core 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -297,16 +297,16 @@ object Names {
297
297
// because asserts are caught in exception handlers which might
298
298
// cause other failures. In that case the first, important failure
299
299
// is lost.
300
- println(" Backend should not call Name#toString, Name#mangledString should be used instead." )
301
- new Error ().printStackTrace ()
300
+ System .err. println(" Backend should not call Name#toString, Name#mangledString should be used instead." )
301
+ Thread .dumpStack ()
302
302
assert(false )
303
303
}
304
304
}
305
305
new String (chrs, start, length)
306
306
}
307
307
308
- /** It's OK to take a toString if the stacktrace does not occur a method
309
- * in GenBCode or it also contains one of the whitelisted methods below.
308
+ /** It's OK to take a toString if the stacktrace does not contain a method
309
+ * from GenBCode or it also contains one of the whitelisted methods below.
310
310
*/
311
311
private def toStringOK = {
312
312
val trace = Thread .currentThread.getStackTrace
You can’t perform that action at this time.
0 commit comments