Java interoperablity and kotlin-examples


#1

What are the problems people are having understanding how to write interoperale kotlin.

I will build some examples in the kotlin-examples repo that show how to get java and kotlin to work together.

Thanks

Eric


#2

Here are some samples which come in my mind:

  • @KotlinSignature annotations (embedded into Java code and external)
  • nullability/mutability/etc. propagation for method overriding other (it's not documented, but you can look at our compiler tests at compiler/testData/loadJava/kotlinSignature/propagation)
  • maybe read-only and mutable collections

Maybe other guys in forum can show something from their experience.


#3

Using Guice with Kotlin. It wasn't possible when I tried it few months ago but it might have been fixed.