Platform and version requirements: JVM (1.0)

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=compatibility|all-compatibility.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.