We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07ae23c commit 656c2b6Copy full SHA for 656c2b6
tests/run/t6827.scala
@@ -8,6 +8,9 @@ object Test extends App {
8
it.copyToArray(arr, start, len)
9
"ok"
10
} catch {
11
+ case e: ArrayIndexOutOfBoundsException =>
12
+ // Special-case printing this exception because the toString changed in Java 11
13
+ s"ArrayIndexOutOfBoundsException: ${e.index}"
14
case e: Exception => e.toString
15
}
16
println("%s: %s" format (label, status))
0 commit comments