summaryrefslogtreecommitdiff
path: root/src/compiler/scala/reflect/runtime/Mirror.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/reflect/runtime/Mirror.scala')
-rw-r--r--src/compiler/scala/reflect/runtime/Mirror.scala10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/compiler/scala/reflect/runtime/Mirror.scala b/src/compiler/scala/reflect/runtime/Mirror.scala
index b1724d6450..d2f043c2e2 100644
--- a/src/compiler/scala/reflect/runtime/Mirror.scala
+++ b/src/compiler/scala/reflect/runtime/Mirror.scala
@@ -6,7 +6,7 @@ import java.lang.reflect.Array
/** The mirror for standard runtime reflection from Java.
*/
-class Mirror extends Universe with api.Mirror {
+class Mirror extends Universe with RuntimeTypes with api.Mirror {
import definitions._
@@ -33,12 +33,8 @@ class Mirror extends Universe with api.Mirror {
methodToJava(meth).invoke(receiver, args.asInstanceOf[Seq[AnyRef]]: _*)
}
- def freeValue(x: Any): Tree = FreeValue(x)
-
- // to do: replace with generalized
- // case class Literal(x: Any),
- // once calls to the deprecated factory Literal(x: Any) has been eliminated from all code.
- case class FreeValue(any: Any) extends Tree
+ override def classToType(jclazz: java.lang.Class[_]): Type = typeToScala(jclazz)
+ override def classToSymbol(jclazz: java.lang.Class[_]): Symbol = classToScala(jclazz)
}