From de5f55dc4ee1bbaa735ab96f1fe810a99c31d081 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Wed, 12 Apr 2017 16:05:58 +0200 Subject: TestReporter: Avoid a global lazy val When compiling with dotty, this leads to NullPointerException because the lazy val is not @volatile. Better to just make it a val. --- compiler/test/dotty/tools/dotc/reporting/TestReporter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala b/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala index 8645882ca..7952ed728 100644 --- a/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala +++ b/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala @@ -91,7 +91,7 @@ extends Reporter with UniqueMessagePositions with HideNonSensicalMessages with M } object TestReporter { - lazy val logWriter = { + val logWriter = { val df = new SimpleDateFormat("yyyy-MM-dd-HH:mm") val timestamp = df.format(new Date) new JFile("../testlogs").mkdirs() -- cgit v1.2.3