diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-06-06 09:43:05 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-06-08 15:31:45 +0200 |
commit | 252a44864786b6832b9da4c29d1ac9aad48c4291 (patch) | |
tree | aef048d8a210d38f116b8875d99e3c13c703d685 /src/compiler/scala/tools/reflect/StdTags.scala | |
parent | 6bb5975289c5b11cb8c88dd4629286956b5d3d27 (diff) | |
download | scala-252a44864786b6832b9da4c29d1ac9aad48c4291.tar.gz scala-252a44864786b6832b9da4c29d1ac9aad48c4291.tar.bz2 scala-252a44864786b6832b9da4c29d1ac9aad48c4291.zip |
ClassTag.erasure => ClassTag.runtimeClass
This change is made to be consistent with JavaMirrors.
And, in my opinion, a technology-neutral term is better here.
Diffstat (limited to 'src/compiler/scala/tools/reflect/StdTags.scala')
-rw-r--r-- | src/compiler/scala/tools/reflect/StdTags.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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] |