diff options
author | Paul Phillips <paulp@improving.org> | 2010-12-23 04:47:25 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-12-23 04:47:25 +0000 |
commit | 8b567935cf21eb5179cbbf9aa5e4bffd6ab32d6b (patch) | |
tree | ef2e829cf2133b36c94fa1623e6778800346c4cd /src/compiler | |
parent | 7418d531f0309aa43c7002386b35e73742f063a3 (diff) | |
download | scala-8b567935cf21eb5179cbbf9aa5e4bffd6ab32d6b.tar.gz scala-8b567935cf21eb5179cbbf9aa5e4bffd6ab32d6b.tar.bz2 scala-8b567935cf21eb5179cbbf9aa5e4bffd6ab32d6b.zip |
Looks like there is some side effecting I can't...
Looks like there is some side effecting I can't pin down. Reverts the
last two patches until my bring gets bigger. No review.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index dc8cd7b78a..2bc501cea0 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -1726,17 +1726,12 @@ abstract class GenJVM extends SubComponent with GenJVMUtil with GenAndroid { ////////////////////// Utilities //////////////////////// - private val javaNameCache = mutable.HashMap[Symbol, String]() override def javaName(sym: Symbol): String = { if (sym.isClass && !sym.rawowner.isPackageClass && !sym.isModuleClass) innerClasses = innerClasses + sym - - javaNameCache.getOrElseUpdate(sym, super.javaName(sym)) + super.javaName(sym) } - private val javaTypeCache = mutable.HashMap[Symbol, JType]() - override def javaType(sym: Symbol): JType = javaTypeCache.getOrElseUpdate(sym, super.javaType(sym)) - /** Calls to methods in 'sym' need invokeinterface? */ def needsInterfaceCall(sym: Symbol): Boolean = { log("checking for interface call: " + sym.fullName) |