Provide more precise check for ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED

#KT-47542 Fixed
This commit is contained in:
Mikhail Glukhikh
2021-08-23 14:07:54 +03:00
parent 7f12cda233
commit bbb76aae3f
11 changed files with 182 additions and 15 deletions
@@ -0,0 +1,27 @@
// FULL_JDK
// ISSUE: KT-47542
// FILE: PlaceholderExceptionSupport.java
public interface PlaceholderExceptionSupport {
String getMessage();
}
// FILE: ExceptionWithAbstractMessage.java
public class ExceptionWithAbstractMessage extends RuntimeException implements PlaceholderExceptionSupport {
public ExceptionWithAbstractMessage(String x) { super(x); }
abstract String getMessage();
}
// FILE: PlaceholderException.java
public class PlaceholderException extends RuntimeException implements PlaceholderExceptionSupport {
public PlaceholderException(String x) { super(x); }
}
// FILE: main.kt
class KotlinTestSuccess : PlaceholderException("OK") {}
<!ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED!>class KotlinTestFailure<!> : ExceptionWithAbstractMessage("FAIL") {}