Fixed KT-5443 J2K converter crashes when code contains catch with multiple exception types
#KT-5443 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
//file
|
||||
import java.io.IOException;
|
||||
|
||||
class A {
|
||||
void foo() {
|
||||
try {
|
||||
bar()
|
||||
}
|
||||
catch(RuntimeException | IOException e) {
|
||||
e.printStackTrace(); // print stack trace
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import java.io.IOException
|
||||
|
||||
class A {
|
||||
fun foo() {
|
||||
try {
|
||||
bar()
|
||||
} catch (e: RuntimeException) {
|
||||
e.printStackTrace() // print stack trace
|
||||
} catch (e: IOException) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user