Skip to content

Commit 09ad855

Browse files
committed
Address reviewers comments
1 parent 385178d commit 09ad855

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/core/Names.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,16 +297,16 @@ object Names {
297297
// because asserts are caught in exception handlers which might
298298
// cause other failures. In that case the first, important failure
299299
// 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()
302302
assert(false)
303303
}
304304
}
305305
new String(chrs, start, length)
306306
}
307307

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.
310310
*/
311311
private def toStringOK = {
312312
val trace = Thread.currentThread.getStackTrace

0 commit comments

Comments
 (0)