From 252a44864786b6832b9da4c29d1ac9aad48c4291 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Wed, 6 Jun 2012 09:43:05 +0200 Subject: ClassTag.erasure => ClassTag.runtimeClass This change is made to be consistent with JavaMirrors. And, in my opinion, a technology-neutral term is better here. --- src/compiler/scala/tools/reflect/StdTags.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/scala/tools/reflect/StdTags.scala') diff --git a/src/compiler/scala/tools/reflect/StdTags.scala b/src/compiler/scala/tools/reflect/StdTags.scala index 914219c04e..f01e476273 100644 --- a/src/compiler/scala/tools/reflect/StdTags.scala +++ b/src/compiler/scala/tools/reflect/StdTags.scala @@ -29,7 +29,7 @@ object StdTags { ru.runtimeMirror(ourClassloader), new TypeCreator { def apply[U <: BaseUniverse with Singleton](m: MirrorOf[U]): U # Type = - m.staticClass(classTag[T].erasure.getName).asTypeConstructor.asInstanceOf[U # Type] + m.staticClass(classTag[T].runtimeClass.getName).asTypeConstructor.asInstanceOf[U # Type] }) lazy val tagOfInt = ru.TypeTag.Int lazy val tagOfFile = tagOfStaticClass[scala.tools.nsc.io.File] -- cgit v1.2.3