You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala>classFoo{ overridedefequals(o: Any) =false; overridedefhashCode=1}
defined classFoo
scala>varm=Map[Foo, Int]()
m: scala.collection.immutable.Map[Foo,Int] =Map()
scala>for (i <-1 to 8000) m += (newFoo) -> i
java.lang.StackOverflowError
at scala.collection.immutable.ListMap$$Node.get(ListMap.scala:148)
at scala.collection.immutable.ListMap$$Node.get(ListMap.scala:148)
at scala.collection.immutable.ListMap$$Node.get(ListMap.scala:148)
at scala.collection.immutable.ListMap$$Node.get(ListMap.scala:148)
at scala.collection.immutable.ListMap$$Node.get(ListMap.scala:148)
at scala.collection.immutable.ListMap$$Node.get(ListMap.scala:148)
at scala.collection.immutable.ListMap$$Node.get(ListMap.scala:148)
at scala.collection.immutable.ListMap$$Node.get(ListMap.scala:148)
at scala.collection.immutable.ListMap$$Node.get(ListMap.scala:148)
at scala.collection.immutable.ListMap$$Node.get(ListMap.scala:148)
at scala.collection.immutable.ListMap$$Node.get(ListMap.scala:148)
at scala.collection.immutable....
The issue is that ListMap.Node#get is recursive instead of iterative. ListMap is used by HashMapCollision1.
The text was updated successfully, but these errors were encountered:
The issue is that ListMap.Node#get is recursive instead of iterative. ListMap is used by HashMapCollision1.
The text was updated successfully, but these errors were encountered: