ImplicitlyActualizedByJvmDeclaration
This annotation marks Kotlin expect
declarations that are implicitly actualized by Java.
Safety Risks
Implicit actualization bypasses safety features, potentially leading to errors or unexpected behavior. If you use this annotation, some of the expect-actual invariants are not checked.
Use this annotation only as a last resort. The annotation might stop working in future Kotlin versions without prior notice.
If you use this annotation, consider describing your use cases in KT-58545 comments.
Migration
Rewrite the code using explicit actual typealias
. Unfortunately, it requires you to move your expect declarations into another package. Refer to KT-58545 for more detailed migration example.
Since Kotlin
1.9Deprecated
Error since 2.1
Please migrate to kotlin.jvm.KotlinActual in kotlin-annotations-jvm. ImplicitlyActualizedByJvmDeclaration will be dropped in future versions of Kotlin. See https://youtrack.jetbrains.com/issue/KT-67202
This annotation marks Kotlin expect
declarations that are implicitly actualized by Java.
Safety Risks
Implicit actualization bypasses safety features, potentially leading to errors or unexpected behavior. If you use this annotation, some of the expect-actual invariants are not checked.
Use this annotation only as a last resort. The annotation might stop working in future Kotlin versions without prior notice.
If you use this annotation, consider describing your use cases in KT-58545 comments.
Migration
Alternatives:
Rewrite the code using explicit
actual typealias
. Unfortunately, it requires you to move your expect declarations into another package. Refer to KT-58545 for a more detailed migration example.Use
kotlin.jvm.KotlinActual
experimental feature. See https://youtrack.jetbrains.com/issue/KT-67202