Improve exception message in collection stubs

This commit is contained in:
Denis Zharkov
2016-10-05 14:15:17 +03:00
parent 8ee568105c
commit 3a100d4139
2 changed files with 5 additions and 2 deletions
@@ -43,7 +43,7 @@ fun box(): String {
method.invoke(c, "")
return "fail 4"
} catch (e: java.lang.reflect.InvocationTargetException) {
if (e.cause!!.message != "Mutating immutable collection") return "fail 5: ${e.cause!!.message}"
if (e.cause!!.message != "Operation is not supported for read-only collection") return "fail 5: ${e.cause!!.message}"
}
return "OK"