8000 fix: Enable skipped concurrent tests and fix implemenation of failing… · scala-native/scala-native@14f96d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 14f96d6

Browse files
fix: Enable skipped concurrent tests and fix implemenation of failing tests (#3875)
1 parent 74f06ec commit 14f96d6

File tree

10 files changed

+296
-289
lines changed

10 files changed

+296
-289
lines changed

javalib/src/main/scala/java/util/AbstractCollection.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ abstract class AbstractCollection[E] protected () extends Collection[E] {
5656
findAndRemove(iterator())
5757
}
5858

59-
def containsAll(c: Collection[_]): Boolean =
60-
c.scalaOps.forall(this.contains(_))
59+
def containsAll(c: Collection[_]): Boolean = {
60+
var it = c.iterator()
61+
while (it.hasNext()) if (!contains(it.next())) return false
62+
true
63+
}
6164

6265
def addAll(c: Collection[_ <: E]): Boolean =
6366
c.scalaOps.foldLeft(false)((prev, elem) => add(elem) || prev)

0 commit comments

Comments
 (0)
0