diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-04-12 16:05:58 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-04-12 16:05:59 +0200 |
commit | de5f55dc4ee1bbaa735ab96f1fe810a99c31d081 (patch) | |
tree | 9e9952dbc058cc74cc0dbae2ea4d3741cfa3d132 /compiler | |
parent | 8753f0b46d8f7b63fb1640a45bc280624cf495f4 (diff) | |
download | dotty-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.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/test/dotty/tools/dotc/reporting/TestReporter.scala | 2 |
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() |