fda47c45ec
`FakeOverrideBuilder.provideFakeOverrides` recursively changes overrides for all superclasses in the hierarchy, including lazy IR, which is a lot of extra work. Also it leads to some tests failing in the IR fake override builder mode because it changes correct fake overrides of Java classes to incorrect ones. Those tests are unmuted but it doesn't mean they are fixed -- most likely we'll generate fake overrides via IR for lazy IR too, at which point they'll start to fail again.
22 lines
547 B
Kotlin
Vendored
22 lines
547 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// FULL_JDK
|
|
// ISSUE: KT-45584
|
|
|
|
// FILE: PlaceholderExceptionSupport.java
|
|
|
|
public interface PlaceholderExceptionSupport {
|
|
String getMessage();
|
|
}
|
|
|
|
// FILE: PlaceholderException.java
|
|
|
|
public class PlaceholderException extends RuntimeException implements PlaceholderExceptionSupport {
|
|
public PlaceholderException(String x) { super(x); }
|
|
}
|
|
|
|
// FILE: main.kt
|
|
|
|
class KotlinTestFailure : PlaceholderException("OK") {} // <-- CONFLICTING_INHERITED_JVM_DECLARATIONS
|
|
|
|
fun box(): String = KotlinTestFailure().message ?: "fail"
|