Skip to content

Commit

Permalink
Fix test failure on Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
smarter committed Oct 1, 2018
1 parent 07ae23c commit 656c2b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/run/t6827.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ object Test extends App {
it.copyToArray(arr, start, len)
"ok"
} catch {
case e: ArrayIndexOutOfBoundsException =>
// Special-case printing this exception because the toString changed in Java 11
s"ArrayIndexOutOfBoundsException: ${e.index}"
case e: Exception => e.toString
}
println("%s: %s" format (label, status))
Expand Down

0 comments on commit 656c2b6

Please sign in to comment.