diff --git a/libraries/stdlib/common/src/kotlin/ExceptionsH.kt b/libraries/stdlib/common/src/kotlin/ExceptionsH.kt index bc036badd6b..ee48cdd6533 100644 --- a/libraries/stdlib/common/src/kotlin/ExceptionsH.kt +++ b/libraries/stdlib/common/src/kotlin/ExceptionsH.kt @@ -49,9 +49,7 @@ public expect open class IndexOutOfBoundsException : RuntimeException { public expect open class ConcurrentModificationException : RuntimeException { constructor() constructor(message: String?) - @Deprecated("The constructor is not supported on all platforms and will be removed from kotlin-stdlib-common soon.", level = DeprecationLevel.ERROR) constructor(message: String?, cause: Throwable?) - @Deprecated("The constructor is not supported on all platforms and will be removed from kotlin-stdlib-common soon.", level = DeprecationLevel.ERROR) constructor(cause: Throwable?) } diff --git a/libraries/stdlib/test/exceptions/ExceptionTest.kt b/libraries/stdlib/test/exceptions/ExceptionTest.kt index 49fb408c02c..789ea14bf9c 100644 --- a/libraries/stdlib/test/exceptions/ExceptionTest.kt +++ b/libraries/stdlib/test/exceptions/ExceptionTest.kt @@ -23,7 +23,7 @@ class ExceptionTest { @Test fun nullPointerException() = testCreateException(::NullPointerException, ::NullPointerException) @Test fun classCastException() = testCreateException(::ClassCastException, ::ClassCastException) @Test fun noSuchElementException() = testCreateException(::NoSuchElementException, ::NoSuchElementException) - @Test fun concurrentModificationException() = testCreateException(::ConcurrentModificationException, ::ConcurrentModificationException) + @Test fun concurrentModificationException() = testCreateException(::ConcurrentModificationException, ::ConcurrentModificationException, ::ConcurrentModificationException, ::ConcurrentModificationException) @Test fun arithmeticException() = testCreateException(::ArithmeticException, ::ArithmeticException) @Test fun noWhenBranchMatchedException() = @Suppress("DEPRECATION_ERROR") testCreateException(::NoWhenBranchMatchedException, ::NoWhenBranchMatchedException, ::NoWhenBranchMatchedException, ::NoWhenBranchMatchedException)