Skip to content

Commit e8e3c72

Browse files
Mikhael BogdanovSpace
Mikhael Bogdanov
authored and
Space
committedNov 9, 2021
Update INTERFACE_CANT_CALL_DEFAULT_METHOD_VIA_SUPER message
1 parent ddd02fe commit e8e3c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/diagnostics/DefaultErrorMessagesJvm.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public class DefaultErrorMessagesJvm implements DefaultErrorMessages.Extension {
9595
MAP.put(NO_REFLECTION_IN_CLASS_PATH, "Call uses reflection API which is not found in compilation classpath. " +
9696
"Make sure you have kotlin-reflect.jar in the classpath");
9797

98-
MAP.put(INTERFACE_CANT_CALL_DEFAULT_METHOD_VIA_SUPER, "Interfaces can call default methods via super only within @JvmDefault members. Please annotate the containing interface member with @JvmDefault");
98+
MAP.put(INTERFACE_CANT_CALL_DEFAULT_METHOD_VIA_SUPER, "Interfaces can call JVM-default members via super only within JVM-default members. Please use '-Xjvm-default=all/all-compatibility' modes for such calls");
9999
MAP.put(SUBCLASS_CANT_CALL_COMPANION_PROTECTED_NON_STATIC, "Using non-JVM static members protected in the superclass companion is unsupported yet");
100100

101101
MAP.put(NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS, "Type mismatch: inferred type is {1} but {0} was expected", RENDER_TYPE, RENDER_TYPE);

0 commit comments

Comments
 (0)