aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2017-04-12 16:05:58 +0200
committerGuillaume Martres <smarter@ubuntu.com>2017-04-12 16:05:59 +0200
commitde5f55dc4ee1bbaa735ab96f1fe810a99c31d081 (patch)
tree9e9952dbc058cc74cc0dbae2ea4d3741cfa3d132
parent8753f0b46d8f7b63fb1640a45bc280624cf495f4 (diff)
downloaddotty-de5f55dc4ee1bbaa735ab96f1fe810a99c31d081.tar.gz
dotty-de5f55dc4ee1bbaa735ab96f1fe810a99c31d081.tar.bz2
dotty-de5f55dc4ee1bbaa735ab96f1fe810a99c31d081.zip
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.
-rw-r--r--compiler/test/dotty/tools/dotc/reporting/TestReporter.scala2
1 files changed, 1 insertions, 1 deletions
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()