JvmDefault

JVM
1.2
@Target ( [AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY] ) annotation class JvmDefault
(source)
Deprecated: Switch to new -Xjvm-default modes: `all` or `all-compatibility`

Specifies that a JVM default method should be generated for non-abstract Kotlin interface member.

This annotation can no longer be used. It has been superseded by the new -Xjvm-default modes all and all-compatibility , and the new annotations @JvmDefaultWithCompatibility and @JvmDefaultWithoutCompatibility .

Constructors

JVM
1.0

<init>

Specifies that a JVM default method should be generated for non-abstract Kotlin interface member.

JvmDefault ( )

Extension Properties

JVM
1.0

annotationClass

Returns a KClass instance corresponding to the annotation type of this annotation.

val < T : Annotation > T . annotationClass : KClass < out T >