Static methods could convert better


#1

I understand that class objects are Kotlin's approach to static methods and that they have some advantages. However, in practice what it means is when converting a java class with static methods, I have to go convert all the call sites (which are still in Java) from FooClass.method to SomePackage.method - makework I could do without.

It would be nice if there was a way to make class object methods that got mapped at the bytecode level to real Java static methods so API compatibility could be preserved.


#2

Yes, we are considering a few approaches to this. One being annotating class object's methods so that they map to statics in Java, another — annotatins files/top level functions to emit classes other than FooPackage