Add tests for KT-35468
^KT-35468 Fixed
This commit is contained in:
committed by
Ilya Gorbunov
parent
9c2e149b5b
commit
c6ae423816
@@ -0,0 +1,16 @@
|
||||
package test;
|
||||
|
||||
class JavaClass {
|
||||
void testMethod() {
|
||||
|
||||
try {
|
||||
KotlinThrowsKt.kt();
|
||||
}
|
||||
catch (E1 e) {}
|
||||
|
||||
try {
|
||||
KotlinThrowsKt.ktJvm();
|
||||
}
|
||||
catch (E2 e) {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
class E1 : Exception()
|
||||
class E2 : Exception()
|
||||
|
||||
@kotlin.Throws(E1::class)
|
||||
fun kt() {}
|
||||
|
||||
@kotlin.jvm.Throws(E2::class)
|
||||
fun ktJvm() {}
|
||||
@@ -0,0 +1,41 @@
|
||||
package test
|
||||
|
||||
public fun kt(): kotlin.Unit
|
||||
public fun ktJvm(): kotlin.Unit
|
||||
|
||||
public final class E1 : kotlin.Exception /* = java.lang.Exception */ {
|
||||
public constructor E1()
|
||||
public open /*fake_override*/ val cause: kotlin.Throwable?
|
||||
public open /*fake_override*/ val message: kotlin.String?
|
||||
public final /*fake_override*/ fun addSuppressed(/*0*/ kotlin.Throwable!): kotlin.Unit
|
||||
public open /*fake_override*/ fun fillInStackTrace(): kotlin.Throwable!
|
||||
public open /*fake_override*/ fun getLocalizedMessage(): kotlin.String!
|
||||
public open /*fake_override*/ fun getStackTrace(): kotlin.Array<(out) java.lang.StackTraceElement!>!
|
||||
public final /*fake_override*/ fun getSuppressed(): kotlin.Array<(out) kotlin.Throwable!>!
|
||||
public open /*fake_override*/ fun initCause(/*0*/ kotlin.Throwable!): kotlin.Throwable!
|
||||
public open /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
public open /*fake_override*/ fun printStackTrace(/*0*/ java.io.PrintStream!): kotlin.Unit
|
||||
public open /*fake_override*/ fun printStackTrace(/*0*/ java.io.PrintWriter!): kotlin.Unit
|
||||
public open /*fake_override*/ fun setStackTrace(/*0*/ kotlin.Array<(out) java.lang.StackTraceElement!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
public final class E2 : kotlin.Exception /* = java.lang.Exception */ {
|
||||
public constructor E2()
|
||||
public open /*fake_override*/ val cause: kotlin.Throwable?
|
||||
public open /*fake_override*/ val message: kotlin.String?
|
||||
public final /*fake_override*/ fun addSuppressed(/*0*/ kotlin.Throwable!): kotlin.Unit
|
||||
public open /*fake_override*/ fun fillInStackTrace(): kotlin.Throwable!
|
||||
public open /*fake_override*/ fun getLocalizedMessage(): kotlin.String!
|
||||
public open /*fake_override*/ fun getStackTrace(): kotlin.Array<(out) java.lang.StackTraceElement!>!
|
||||
public final /*fake_override*/ fun getSuppressed(): kotlin.Array<(out) kotlin.Throwable!>!
|
||||
public open /*fake_override*/ fun initCause(/*0*/ kotlin.Throwable!): kotlin.Throwable!
|
||||
public open /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
public open /*fake_override*/ fun printStackTrace(/*0*/ java.io.PrintStream!): kotlin.Unit
|
||||
public open /*fake_override*/ fun printStackTrace(/*0*/ java.io.PrintWriter!): kotlin.Unit
|
||||
public open /*fake_override*/ fun setStackTrace(/*0*/ kotlin.Array<(out) java.lang.StackTraceElement!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
public/*package*/ open class JavaClass {
|
||||
public/*package*/ constructor JavaClass()
|
||||
public/*package*/ open fun testMethod(): kotlin.Unit
|
||||
}
|
||||
Reference in New Issue
Block a user