Kotlin: Argument Type Mismatch when passing Array as vararg parameter
问题 I have a simple interface and its implementation: interface Iface { fun doSomething(s: String) } class IfaceImpl : Iface { override fun doSomething(s: String) { println("Doing the job, s = $s") } } Also, there are two identical (at least I cannot spot the difference) invocation handlers, one in Java and one in Kotlin: public class JavaHandler implements InvocationHandler { private final Iface target; public JavaHandler(Iface target) { this.target = target; } @Override public Object invoke