j2k: Generate class literals in throws

This commit is contained in:
Denis Zharkov
2015-04-20 19:55:59 +03:00
parent 5ce4f4cad1
commit 036f31f36b
13 changed files with 28 additions and 22 deletions
@@ -11,7 +11,7 @@ class Test : Base() {
return super.equals(o)
}
throws(javaClass<CloneNotSupportedException>())
throws(CloneNotSupportedException::class)
override fun clone(): Any {
return super.clone()
}
@@ -20,7 +20,7 @@ class Test : Base() {
return super.toString()
}
throws(javaClass<Throwable>())
throws(Throwable::class)
override fun finalize() {
super.finalize()
}
@@ -35,7 +35,7 @@ open class Base {
return super.equals(o)
}
throws(javaClass<CloneNotSupportedException>())
throws(CloneNotSupportedException::class)
protected open fun clone(): Any {
return super.clone()
}
@@ -44,7 +44,7 @@ open class Base {
return super.toString()
}
throws(javaClass<Throwable>())
throws(Throwable::class)
protected open fun finalize() {
super.finalize()
}
@@ -12,14 +12,14 @@ class X {
return super.toString()
}
throws(javaClass<CloneNotSupportedException>())
throws(CloneNotSupportedException::class)
protected fun clone(): Any {
return super.clone()
}
}
class Y : Thread() {
throws(javaClass<CloneNotSupportedException>())
throws(CloneNotSupportedException::class)
override fun clone(): Any {
return super.clone()
}
@@ -14,7 +14,7 @@ class X : Base() {
return super.toString()
}
throws(javaClass<CloneNotSupportedException>())
throws(CloneNotSupportedException::class)
protected fun clone(): Any {
return super.clone()
}
@@ -1,2 +1,2 @@
throws(javaClass<IOException>(), javaClass<SerializationException>())
throws(IOException::class, SerializationException::class)
fun foo()