Revert dropping inline-only extensions for Throwable, to be able to use runtime of 1.1 with language version of 1.0 which makes mapped builtin members unavailable again.
#KT-14213 Fixed
This commit is contained in:
@@ -1,14 +1,34 @@
|
||||
@file:kotlin.jvm.JvmMultifileClass
|
||||
@file:kotlin.jvm.JvmName("ExceptionsKt")
|
||||
@file:kotlin.jvm.JvmVersion
|
||||
@file:Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN", "DeprecatedCallableAddReplaceWith")
|
||||
@file:Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN")
|
||||
package kotlin
|
||||
|
||||
import java.io.PrintStream
|
||||
import java.io.PrintWriter
|
||||
|
||||
/**
|
||||
* Prints the stack trace of this throwable to the standard output.
|
||||
*/
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Throwable.printStackTrace(): Unit = (this as java.lang.Throwable).printStackTrace()
|
||||
|
||||
/**
|
||||
* Prints the stack trace of this throwable to the specified [writer].
|
||||
*/
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Throwable.printStackTrace(writer: PrintWriter): Unit = (this as java.lang.Throwable).printStackTrace(writer)
|
||||
|
||||
/**
|
||||
* Prints the stack trace of this throwable to the specified [stream].
|
||||
*/
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Throwable.printStackTrace(stream: PrintStream): Unit = (this as java.lang.Throwable).printStackTrace(stream)
|
||||
|
||||
/**
|
||||
* Returns an array of stack trace elements representing the stack trace
|
||||
* pertaining to this throwable.
|
||||
*/
|
||||
@Deprecated("Provided for binary compatibility", level = DeprecationLevel.HIDDEN)
|
||||
@Suppress("ConflictingExtensionProperty")
|
||||
public val Throwable.stackTrace: Array<StackTraceElement>
|
||||
get() = stackTrace!!
|
||||
get() = (this as java.lang.Throwable).stackTrace!!
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
public final class kotlin/ExceptionsKt {
|
||||
public static final synthetic fun getStackTrace (Ljava/lang/Throwable;)[Ljava/lang/StackTraceElement;
|
||||
public static final fun getStackTrace (Ljava/lang/Throwable;)[Ljava/lang/StackTraceElement;
|
||||
}
|
||||
|
||||
public abstract interface class kotlin/Lazy {
|
||||
|
||||
Reference in New Issue
Block a user