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
valqueue=newSynchronizedQueue[(A,B)]
for( (a,_) <- queue ){
// ...
}
java.util.NoSuchElementException
at scala.collection.mutable.LinkedListLike$class.head(LinkedListLike.scala:69)
at scala.collection.mutable.LinkedList.head(LinkedList.scala:41)
at scala.collection.mutable.MutableList.head(MutableList.scala:51)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.mutable.MutableList.foreach(MutableList.scala:28)
at scala.collection.TraversableLike$class.filter(TraversableLike.scala:212)
at scala.collection.mutable.MutableList.filter(MutableList.scala:28)
at line 3 in the code example
the queue is also accessed by other Actors.
The text was updated successfully, but these errors were encountered:
@retronym said (edited on May 12, 2012 12:41:13 PM UTC):
This class of bug seems almost guaranteed in all the SynchronizedXxx collection proxies -- there are no checks in place to ensure every method is overridden with synchronized wrapper.
the queue is also accessed by other Actors.
The text was updated successfully, but these errors were encountered: