Skip to content

Commit

Permalink
pull request feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
xeno-by committed May 11, 2013
1 parent 75a3b88 commit 5751ddd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/compiler/scala/tools/nsc/typechecker/Macros.scala
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,13 @@ trait Macros extends scala.tools.reflect.FastTrack with Traces {
}

import SigGenerator._
macroLogVerbose(s"generating macroImplSigs for: $macroDef")
macroLogVerbose(s"tparams are: $tparams")
macroLogVerbose(s"vparamss are: $vparamss")
macroLogVerbose(s"retTpe is: $retTpe")
macroLogVerbose(s"macroImplSig is: $paramss, $implRetTpe")
macroLogVerbose(sm"""
|generating macroImplSigs for: $macroDef
|tparams are: $tparams
|vparamss are: $vparamss
|retTpe is: $retTpe
|macroImplSig is: $paramss, $implRetTpe
""".trim)
(paramss, implRetTpe)
}

Expand Down
3 changes: 2 additions & 1 deletion src/reflect/scala/reflect/runtime/ReflectionUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ private[scala] object ReflectionUtils {
case cl if cl != null && isAbstractFileClassLoader(cl.getClass) =>
cl.asInstanceOf[{val root: scala.reflect.io.AbstractFile}].root.canonicalPath
case null =>
scala.util.Properties.propOrEmpty("sun.boot.class.path")
val loadBootCp = (flavor: String) => scala.util.Properties.propOrNone(flavor + ".boot.class.path")
loadBootCp("sun") orElse loadBootCp("java") getOrElse "<unknown>"
case _ =>
"<unknown>"
}
Expand Down

0 comments on commit 5751ddd

Please sign in to comment.