From 239e79a241df213e211a8222f40838d237dbb5af Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Wed, 8 Dec 2021 10:50:39 +0100 Subject: [PATCH] JvmDefaultWithCompatibility. Update documentation --- libraries/stdlib/jvm/src/kotlin/jvm/JvmDefault.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/stdlib/jvm/src/kotlin/jvm/JvmDefault.kt b/libraries/stdlib/jvm/src/kotlin/jvm/JvmDefault.kt index 4669cbbf97d..217c1169af7 100644 --- a/libraries/stdlib/jvm/src/kotlin/jvm/JvmDefault.kt +++ b/libraries/stdlib/jvm/src/kotlin/jvm/JvmDefault.kt @@ -51,6 +51,8 @@ annotation class JvmDefaultWithoutCompatibility /** * Forces the compiler to generate compatibility accessors for the annotated interface in the `DefaultImpls` class. + * Please note that if an interface is annotated with this annotation for binary compatibility, public derived Kotlin interfaces should also be annotated with it, + * because their `DefaultImpls` methods will be used to access implementations from the `DefaultImpls` class of the original interface. * * Used only with `-Xjvm-default=all`. For more details refer to `-Xjvm-default` documentation. */