Introduce ConcurrentModificationException typealias in stdlib/jvm

This is required to provide the corresponding expect exception in stdlib/common.
Raise deprecation level for constructors declared in common but unsupported in JVM.

#KT-26598
This commit is contained in:
Ilya Gorbunov
2018-09-07 22:33:28 +03:00
parent afb62ffc0c
commit 68c5c0f639
3 changed files with 6 additions and 3 deletions
@@ -46,13 +46,12 @@ public expect open class IndexOutOfBoundsException : RuntimeException {
constructor(message: String?)
}
@Suppress("NO_ACTUAL_FOR_EXPECT") // TODO: Introduce typealias in JVM
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.")
@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.")
@Deprecated("The constructor is not supported on all platforms and will be removed from kotlin-stdlib-common soon.", level = DeprecationLevel.ERROR)
constructor(cause: Throwable?)
}