Don't load Object as a supertype for Java classes
#KT-4890 In Progress #KT-5002 Fixed
This commit is contained in:
+1
-9
@@ -1,16 +1,8 @@
|
||||
package test
|
||||
|
||||
public final class ClassWithObjectMethod : java.lang.Object {
|
||||
public final class ClassWithObjectMethod {
|
||||
public constructor ClassWithObjectMethod()
|
||||
protected/*protected and package*/ open override /*1*/ /*fake_override*/ fun clone(): kotlin.Any
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
protected/*protected and package*/ open override /*1*/ /*fake_override*/ fun finalize(): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun getClass(): java.lang.Class<out kotlin.Any?>
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun notify(): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun notifyAll(): kotlin.Unit
|
||||
public open override /*1*/ fun toString(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun wait(): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun wait(/*0*/ p0: kotlin.Long): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun wait(/*0*/ p0: kotlin.Long, /*1*/ p1: kotlin.Int): kotlin.Unit
|
||||
}
|
||||
|
||||
+3
-9
@@ -1,15 +1,9 @@
|
||||
package test
|
||||
|
||||
public trait InterfaceWithObjectMethods : java.lang.Object {
|
||||
public abstract override /*1*/ fun clone(): kotlin.Any
|
||||
public trait InterfaceWithObjectMethods {
|
||||
public abstract fun clone(): kotlin.Any?
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract override /*1*/ fun finalize(): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun getClass(): java.lang.Class<out kotlin.Any?>
|
||||
public abstract fun finalize(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun notify(): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun notifyAll(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun wait(): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun wait(/*0*/ p0: kotlin.Long): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun wait(/*0*/ p0: kotlin.Long, /*1*/ p1: kotlin.Int): kotlin.Unit
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ public final class Sub : test.Super {
|
||||
public/*package*/ open override /*1*/ /*fake_override*/ fun foo(/*0*/ r: java.lang.Runnable?): kotlin.Unit
|
||||
}
|
||||
|
||||
public open class Super : java.lang.Object {
|
||||
public open class Super {
|
||||
public constructor Super()
|
||||
public/*package*/ final /*synthesized*/ fun foo(/*0*/ r: (() -> kotlin.Unit)?): kotlin.Unit
|
||||
public/*package*/ final /*synthesized*/ fun foo(/*0*/ r: (() -> kotlin.Unit)?): kotlin.Unit
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ public final class Sub : test.Super {
|
||||
public/*package*/ open override /*1*/ /*fake_override*/ fun foo(/*0*/ r: java.lang.Runnable?): kotlin.Unit
|
||||
}
|
||||
|
||||
public open class Super : java.lang.Object {
|
||||
public open class Super {
|
||||
public constructor Super()
|
||||
public/*package*/ final /*synthesized*/ fun foo(/*0*/ r: (() -> kotlin.Unit)?): kotlin.Unit
|
||||
public/*package*/ open fun foo(/*0*/ r: java.lang.Runnable?): kotlin.Unit
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ public final class Sub : test.Super {
|
||||
public/*package*/ open override /*1*/ /*fake_override*/ fun foo(/*0*/ r: java.lang.Runnable?): kotlin.Unit
|
||||
}
|
||||
|
||||
public open class Super : java.lang.Object {
|
||||
public open class Super {
|
||||
public constructor Super()
|
||||
public/*package*/ final /*synthesized*/ fun foo(/*0*/ r: (() -> kotlin.Unit)?): kotlin.Unit
|
||||
public/*package*/ open fun foo(/*0*/ r: java.lang.Runnable?): kotlin.Unit
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class Base : java.lang.Object {
|
||||
public open class Base {
|
||||
public constructor Base()
|
||||
public/*package*/ open fun foo(): kotlin.Unit
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class Base : java.lang.Object {
|
||||
public open class Base {
|
||||
public constructor Base()
|
||||
protected/*protected and package*/ open fun foo(): kotlin.Unit
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ public final class InheritJavaField : test.Super {
|
||||
public open override /*1*/ /*fake_override*/ fun method(): kotlin.Int
|
||||
}
|
||||
|
||||
public open class Super : java.lang.Object {
|
||||
public open class Super {
|
||||
public constructor Super()
|
||||
public final var field: kotlin.Int
|
||||
private final var privateField: kotlin.Int
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package test
|
||||
|
||||
public /*synthesized*/ fun A(/*0*/ function: (kotlin.Int) -> kotlin.Unit): test.A
|
||||
|
||||
public trait A : java.lang.Object {
|
||||
public trait A {
|
||||
public abstract fun foo(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package test
|
||||
|
||||
public /*synthesized*/ fun J(/*0*/ function: (test.K?) -> kotlin.Unit): test.J
|
||||
|
||||
public trait J : java.lang.Object {
|
||||
public trait J {
|
||||
public abstract fun foo(/*0*/ p0: test.K?): kotlin.Unit
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package test
|
||||
|
||||
public trait ErrorTypes : java.lang.Object {
|
||||
|
||||
public trait ErrorTypes {
|
||||
|
||||
public trait Sub : test.ErrorTypes.Super {
|
||||
public abstract fun errorTypeInParameter(/*0*/ list: kotlin.List<kotlin.Array<[ERROR : Unresolved java classifier: T]>?>?): kotlin.Unit
|
||||
public abstract override /*1*/ /*fake_override*/ fun errorTypeInParameter(/*0*/ list: kotlin.List<kotlin.Array<[ERROR : Unresolved java classifier: T]>?>?): kotlin.Unit
|
||||
public abstract override /*1*/ fun returnErrorType(): [ERROR : Unresolved java classifier: T]?
|
||||
}
|
||||
|
||||
public trait Super : java.lang.Object {
|
||||
|
||||
public trait Super {
|
||||
public abstract fun errorTypeInParameter(/*0*/ list: kotlin.List<kotlin.Array<[ERROR : Unresolved java classifier: T]>?>?): kotlin.Unit
|
||||
public abstract fun returnErrorType(): [ERROR : Unresolved java classifier: T]?
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@ package test
|
||||
|
||||
public /*synthesized*/ fun NullInAnnotation(/*0*/ function: () -> kotlin.Unit): test.NullInAnnotation
|
||||
|
||||
public trait NullInAnnotation : java.lang.Object {
|
||||
public trait NullInAnnotation {
|
||||
test.NullInAnnotation.Ann(a = null: kotlin.Nothing?, b = {null}: kotlin.Array<kotlin.String>) public abstract fun foo(): kotlin.Unit
|
||||
|
||||
|
||||
public final annotation class Ann : kotlin.Annotation {
|
||||
public constructor Ann(/*0*/ a: kotlin.String, /*1*/ vararg b: kotlin.String /*kotlin.Array<kotlin.String>*/)
|
||||
public abstract fun a(): kotlin.String
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
package test
|
||||
|
||||
public trait ReturnInnerSubclassOfSupersInner : java.lang.Object {
|
||||
|
||||
public trait ReturnInnerSubclassOfSupersInner {
|
||||
|
||||
public open class Sub</*0*/ B> : test.ReturnInnerSubclassOfSupersInner.Super<B> {
|
||||
public constructor Sub</*0*/ B>()
|
||||
|
||||
|
||||
public/*package*/ open inner class Inner : test.ReturnInnerSubclassOfSupersInner.Super.Inner {
|
||||
public/*package*/ constructor Inner()
|
||||
public/*package*/ open override /*1*/ fun get(): test.ReturnInnerSubclassOfSupersInner.Sub<B>?
|
||||
}
|
||||
}
|
||||
|
||||
public open class Super</*0*/ A> : java.lang.Object {
|
||||
|
||||
public open class Super</*0*/ A> {
|
||||
public constructor Super</*0*/ A>()
|
||||
|
||||
public/*package*/ open inner class Inner : java.lang.Object {
|
||||
|
||||
public/*package*/ open inner class Inner {
|
||||
public/*package*/ constructor Inner()
|
||||
public/*package*/ open fun get(): test.ReturnInnerSubclassOfSupersInner.Super<A>?
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
public trait ReturnNotSubtype : java.lang.Object {
|
||||
|
||||
public trait ReturnNotSubtype {
|
||||
|
||||
public trait Sub : test.ReturnNotSubtype.Super<kotlin.Boolean> {
|
||||
public abstract override /*1*/ fun _void(): kotlin.Boolean
|
||||
public abstract override /*1*/ fun array(): kotlin.Array<java.lang.Void>?
|
||||
@@ -10,8 +10,8 @@ public trait ReturnNotSubtype : java.lang.Object {
|
||||
public abstract override /*1*/ fun string2(): kotlin.MutableList<kotlin.Boolean>?
|
||||
public abstract override /*1*/ fun t(): java.lang.Void?
|
||||
}
|
||||
|
||||
public trait Super</*0*/ T> : java.lang.Object {
|
||||
|
||||
public trait Super</*0*/ T> {
|
||||
public abstract fun _void(): kotlin.Unit
|
||||
public abstract fun array(): kotlin.Array<T>?
|
||||
public abstract fun klass(): java.lang.Class<out kotlin.CharSequence?>?
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
package test
|
||||
|
||||
public trait WrongNumberOfGenericParameters : java.lang.Object {
|
||||
public trait WrongNumberOfGenericParameters {
|
||||
public abstract fun o0(): test.WrongNumberOfGenericParameters.One<out kotlin.Any?>?
|
||||
public abstract fun o2(): test.WrongNumberOfGenericParameters.One<[ERROR : T]>?
|
||||
public abstract fun t1(): test.WrongNumberOfGenericParameters.Two<out kotlin.Any?, out kotlin.Any?>?
|
||||
public abstract fun z(): test.WrongNumberOfGenericParameters.Zero?
|
||||
|
||||
public trait One</*0*/ T> : java.lang.Object {
|
||||
|
||||
public trait One</*0*/ T> {
|
||||
}
|
||||
|
||||
public trait Two</*0*/ P, /*1*/ Q> : java.lang.Object {
|
||||
|
||||
public trait Two</*0*/ P, /*1*/ Q> {
|
||||
}
|
||||
|
||||
public trait Zero : java.lang.Object {
|
||||
|
||||
public trait Zero {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user