From 26782d7216e4bc0a54ca1a4d3d49ab5ab8db72a3 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Mon, 2 Dec 2019 16:58:22 +0300 Subject: [PATCH] Fix exception message checking Looks like there's no big difference between "J.s() must not be null" and "s() must not be null". --- .../box/javaInterop/notNullAssertions/staticCallErrorMessage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/testData/codegen/box/javaInterop/notNullAssertions/staticCallErrorMessage.kt b/compiler/testData/codegen/box/javaInterop/notNullAssertions/staticCallErrorMessage.kt index 401402eae07..dd7e45d6d3f 100644 --- a/compiler/testData/codegen/box/javaInterop/notNullAssertions/staticCallErrorMessage.kt +++ b/compiler/testData/codegen/box/javaInterop/notNullAssertions/staticCallErrorMessage.kt @@ -7,7 +7,7 @@ fun box(): String { return try { f(J.s()) } catch (e: IllegalStateException) { - if (e.message == "J.s() must not be null") + if (e.message == "J.s() must not be null" || e.message == "s() must not be null") "OK" else "Fail: ${e.message}"