JvmDefaultWithoutCompatibility

Prevents the compiler from generating compatibility accessors for the annotated class or interface, and suppresses any related compatibility warnings. In other words, this annotation makes the compiler generate the annotated class or interface in the -Xjvm-default=all mode, where only JVM default methods are generated, without DefaultImpls.

Annotating an existing class with this annotation is a binary incompatible change. Therefore this annotation makes the most sense for new classes in libraries which opted into the compatibility mode.

Used only with -Xjvm-default=all-compatibility.

Since Kotlin

1.4