I've been converting a large Java project to Kotli...
# announcements
g
I've been converting a large Java project to Kotlin. Many of my newly converted Kotlin interfaces have JvmStatic functions in their companion objects.
Copy code
interface MyInterface {
    val myVal: Boolean

    companion object {
        @JvmStatic
        fun foo(m: MyInterface): Boolean = m.myVal
    }
}
Now dozens of Java classes that implement MyInterface are showing red-underlined errors in IntelliJ IDEA, saying that they need to implement the static interface method foo (they don't). They compile just fine. I found this bug which seems to match exactly: https://youtrack.jetbrains.com/issue/KT-27208 but I don't understand why it's only got one thumbs up. If I'm the only one with this problem, I must be doing something else wrong. Thoughts?