diff options
author | Paul Phillips <paulp@improving.org> | 2012-02-29 14:20:31 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-29 14:20:31 -0800 |
commit | 105dc63121c84a45711b02f77f8e4a04074f7425 (patch) | |
tree | 9ff1a9f8bc5595d509632e9c6e3d7abc25145f35 /src/compiler/scala/reflect/internal/SymbolTable.scala | |
parent | a183c6ad31011b4fb1785655dd3d671b8f5bb519 (diff) | |
download | scala-105dc63121c84a45711b02f77f8e4a04074f7425.tar.gz scala-105dc63121c84a45711b02f77f8e4a04074f7425.tar.bz2 scala-105dc63121c84a45711b02f77f8e4a04074f7425.zip |
Merge remote-tracking branches 'VladUreche/issue/5527' and 'dragos/master' into develop
Diffstat (limited to 'src/compiler/scala/reflect/internal/SymbolTable.scala')
-rw-r--r-- | src/compiler/scala/reflect/internal/SymbolTable.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/compiler/scala/reflect/internal/SymbolTable.scala b/src/compiler/scala/reflect/internal/SymbolTable.scala index 7745b21aad..c8c1a51102 100644 --- a/src/compiler/scala/reflect/internal/SymbolTable.scala +++ b/src/compiler/scala/reflect/internal/SymbolTable.scala @@ -8,6 +8,7 @@ package internal import scala.collection.{ mutable, immutable } import util._ +import scala.tools.nsc.util.WeakHashSet abstract class SymbolTable extends api.Universe with Collections @@ -266,9 +267,10 @@ abstract class SymbolTable extends api.Universe } } - def newWeakMap[K, V]() = recordCache(mutable.WeakHashMap[K, V]()) - def newMap[K, V]() = recordCache(mutable.HashMap[K, V]()) - def newSet[K]() = recordCache(mutable.HashSet[K]()) + def newWeakMap[K, V]() = recordCache(mutable.WeakHashMap[K, V]()) + def newMap[K, V]() = recordCache(mutable.HashMap[K, V]()) + def newSet[K]() = recordCache(mutable.HashSet[K]()) + def newWeakSet[K <: AnyRef]() = recordCache(new WeakHashSet[K]()) } /** Break into repl debugger if assertion is true. */ |