Files
kotlin/compiler/testData/codegen/bytecodeListing/specialBridges/noDefaultImplsOnEmptySubInterface.kt
Alexander Udalov 6851607a04 JVM IR: do not generate DefaultImpls delegate for collection fake overrides
In the newly added test, prior to this change, JVM IR was generating
DefaultImpls classes with calls to things like
`kotlin/collections/MutableList$DefaultImpls.spliterator` and other
default methods present in JDK 8+. This obviously didn't make much
sense. Although these weren't explicitly mentioned anywhere in the
bytecode, they caused some validation tools to report errors (e.g.
animalsniffer used in arrow).

(cherry picked from commit 5647a935a2)
2020-06-04 14:28:07 +02:00

18 lines
281 B
Kotlin
Vendored

// JVM_TARGET: 1.8
// FULL_JDK
// FILE: J.java
public interface J {
default void foo() {}
}
// FILE: K.kt
interface K : J
interface MyList<T> : MutableList<T>
interface MySet<E> : MutableSet<E>
interface MyMap<K, V> : MutableMap<K, V>
interface MyMap2<X, Y> : MyMap<X, Y>