Implement (override) two method with primitive type and wrapper class field

I have next abstract java class

public abstract class Adapter {
  public abstract String prop(String name, boolean newProperty);
  public abstract String prop(String name, Boolean newProperty);
}

I would like to implement in kotlin class

class TestAdapter: Adapter(){
    override fun prop(name: String?, newProperty: Boolean): String = ""
    override fun prop(name: String?, newProperty: Boolean?): String = ""
}

But I get error

Kotlin: Platform declaration clash: The following declarations have the same JVM signature (prop(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/String;):
fun prop(name: String?, newProperty: Boolean): String defined in …
fun prop(name: String?, newProperty: Boolean?): String defined in …

or, when kotlin class

class TestAdapter: Adapter(){
    override fun prop(name: String?, newProperty: Boolean?): String = ""
}

Kotlin: Class … is not abstract and does not implement abstract base class member public abstract fun prop(name: String!, newProperty: Boolean): String! defined in …

How can I implement this java-class in kotlin?

You need to create another Java class:

public abstract class BaseAdapter extends Adapter {
    @Override
    public String prop(String name, Boolean newProperty) {
        return "";
    }
}

Then in Kotlin:

class TestAdapter : BaseAdapter() {
    override fun prop(name: String?, newProperty: Boolean) = ""
}