KotlinCompiler -stubs option

* do not fail on errors
* do not analyze function bodies
* generate "throw new RuntimeException()" in bytecode
This commit is contained in:
Stepan Koltsov
2012-02-28 15:52:59 +04:00
parent 64dc73fef2
commit 4ea99fc6ca
25 changed files with 293 additions and 143 deletions
@@ -1,5 +1,5 @@
package java.util
abstract public open class AbstractCollection<erased E> protected () : java.util.Collection<E> {
abstract public open class AbstractCollection<erased E> protected () : java.lang.Object(), java.util.Collection<E> {
abstract override public fun iterator() : java.util.Iterator<E>
abstract override public fun size() : Int
override public fun isEmpty() : Boolean {}
@@ -14,4 +14,4 @@ abstract public open class AbstractCollection<erased E> protected () : java.util
override public fun retainAll(c : java.util.Collection<*>) : Boolean {}
override public fun clear() : Unit {}
//override public fun toString() : java.lang.String {}
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
package java.util
abstract public open class AbstractMap<erased K, erased V> protected () : java.util.Map<K, V> {
abstract public open class AbstractMap<erased K, erased V> protected () : java.lang.Object(), java.util.Map<K, V> {
override public fun size() : Int {}
override public fun isEmpty() : Boolean {}
override public fun containsValue(value : Any?) : Boolean {}
@@ -16,4 +16,4 @@ abstract public open class AbstractMap<erased K, erased V> protected () : java.u
//override public fun equals(o : Any?) : Boolean
//override public fun hashCode() : Int
//override public fun toString() : java.lang.String?
}
}
+1 -1
View File
@@ -34,4 +34,4 @@ public open class ArrayList<erased E>(c : java.util.Collection<out E>) : java.ut
// return __
// }
// }
}
}