hi guys please assist with a tricky question <http...
# getting-started
v
h
From reflection/JVM bytecode view, A companion object is not a static block of a class but a (real) inner class. That’s why the testMethod1 is a member of the companion class, not of the interface and so not of the enum.
v
I see that, for this, I have declared methods with ‘@JvmStatic’ to make methods available at the interface level, not a companion, thus methods should be available in both places. But the compiler seems to be ignoring this, or interfaces is an exception to this rude, as I haven’t found this in the docs.
e
what's your Kotlin version and JVM target?
v
@ephemient JVM Target 17 Kotlin 1.8.22
i do also have
-Xjsr305=strict
from this ticket i would expect to have this feature in place 🙂
furthermore, even here it seems to be isnt working
e
oh I see what you're doing
static methods do not propagate to child classes
also I'm not sure what you're trying to do with
@JvmStatic inline
as that's not an ABI meant for Java consumers