diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-03-20 16:23:35 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-03-20 16:23:35 +0100 |
commit | fc46281f9638ac8c44890b0cfca3aed4096b6197 (patch) | |
tree | 5a418827351888b6c54de8da86b6dedfc4dbf339 /src/reflect | |
parent | bbd69f5dd1d5b7eb6a90aa7d59df9c491d112d4d (diff) | |
download | scala-fc46281f9638ac8c44890b0cfca3aed4096b6197.tar.gz scala-fc46281f9638ac8c44890b0cfca3aed4096b6197.tar.bz2 scala-fc46281f9638ac8c44890b0cfca3aed4096b6197.zip |
fixes the craziness in JavaUniverse.log
This long-standing, but trivial to fix nuisance in the implementation of
runtime reflection actively avoided being fixed in both 2.10.0 and 2.10.1.
It's finally the time to put it to a rest.
Diffstat (limited to 'src/reflect')
-rw-r--r-- | src/reflect/scala/reflect/runtime/JavaUniverse.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/runtime/JavaUniverse.scala b/src/reflect/scala/reflect/runtime/JavaUniverse.scala index e18435d5b0..1b69ca4e89 100644 --- a/src/reflect/scala/reflect/runtime/JavaUniverse.scala +++ b/src/reflect/scala/reflect/runtime/JavaUniverse.scala @@ -17,7 +17,7 @@ class JavaUniverse extends internal.SymbolTable with ReflectSetup with runtime.S def forInteractive = false def forScaladoc = false - def log(msg: => AnyRef): Unit = println(" [] "+msg) + def log(msg: => AnyRef): Unit = if (settings.debug.value) println(" [] "+msg) type TreeCopier = InternalTreeCopierOps def newStrictTreeCopier: TreeCopier = new StrictTreeCopier |