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>importscala.jdk.FutureConverters._importscala.jdk.FutureConverters._
scala>importjava.util.concurrent.CompletableFutureimportjava.util.concurrent.CompletableFuture
scala>CompletableFuture.completedStage(42).asScala
java.lang.UnsupportedOperationException
at java.base/java.util.concurrent.CompletableFuture$MinimalStage.isDone(CompletableFuture.java:2976)
at scala.jdk.javaapi.FutureConverters$.asScala(FutureConverters.scala:73)
at scala.jdk.FutureConverters$CompletionStageOps$.asScala$extension(FutureConverters.scala:41)
... 30 elided
JDK 11 has MinimalStage which is a CompletableFuture (also CompletionStage), with UnsupportedOperationException in lot of method bodies (like isDone). Regressed in scala/scala#10181.
Reported by @nmarton-da (https://github.com/scala/scala/pull/10181/files#r1385648137)
JDK 11 has MinimalStage which is a CompletableFuture (also CompletionStage), with UnsupportedOperationException in lot of method bodies (like isDone). Regressed in scala/scala#10181.
See also Kotlin/kotlinx.coroutines#2456, playframework/playframework#11991
The text was updated successfully, but these errors were encountered: