With the code below, I am getting the following error in IntelliJ IDEA 13.1.6 and Kotlin plugin 0.11.91.AndroidStudio.3:
Platform declaration clash: The foll
You could use @JvmField for instructs the compiler not generate getter/setter, and you can implement your setters and getters. With this your code work well in Java (as attribute getter/setter) and Kotlin as property
Example: JAVA:
public interface Identifiable
{
ID getId();
}
KOTLIN:
class IdentifiableImpl(@JvmField var id: String) :Identifiable
{
override fun getId(): String
{
TODO("not implemented")
}
}