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
Exception in thread "main" java.lang.NoSuchMethodError: java.util.Collections.min(Ljava/util/Collection;)Ljava/lang/Comparable;
at Test$.main(hello.scala:4)
at Test.main(hello.scala)
Minimized code
Output
Expectation
I expect this to run correctly.
Notes
JavaDoc of
java.util.Collections.min
For Java (and Scala 2), the erasure of that method is
but Dotty thinks its erasure is
hence the
NoSuchMethodError
.This issue prevents the Scala.js test
CollectionsOnCollectionsTest.testMinMax1
from linking, at the following 2 lines:https://github.com/scala-js/scala-js/blob/6b9f04b0c0531d889235726d8956cb01a4c7476d/test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/util/CollectionsOnCollectionsTest.scala#L36-L37
Possibly related to #9175
The text was updated successfully, but these errors were encountered: