stream: register newshells with no active interpreters (#29731)

Fixes #29730
This commit is contained in:
eyal farago 2020-10-27 14:11:23 +02:00 committed by GitHub
parent 91a5d4b093
commit 2bf09d8da2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 8 deletions

View file

@ -39,7 +39,12 @@ class ByteStringInitializationSpec extends AnyWordSpec with Matchers {
import scala.language.reflectiveCalls
type WithRun = { def run(): Unit }
cleanCl.loadClass("akka.util.ByteStringInitTest").newInstance().asInstanceOf[WithRun].run()
cleanCl
.loadClass("akka.util.ByteStringInitTest")
.getDeclaredConstructor()
.newInstance()
.asInstanceOf[WithRun]
.run()
}
}
}