Find interface declarations with default-method bodies
ProprietaryAn interface I { fun foo() { … } } exposes the body to Java callers only on JDK-8+ targets and only when the Kotlin compiler emits real default methods (@JvmDefault / -Xjvm-default=all). Without the right compiler flags, the body lives in a synthetic DefaultImpls and Java sees an abstract method.
org. openrewrite. kotlin. interop. FindKotlinDefaultMethodInterface$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. interop. FindKotlinDefaultMethodInterface$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.