类 InvocationDelegate

java.lang.Object
org.babyfish.jimmer.impl.util.InvocationDelegate
所有已实现的接口:
InvocationHandler

public class InvocationDelegate extends Object implements InvocationHandler
Helper class for kotlin.

In kotlin, `method.invoke(target, *args)` will throw NPE if `args` is null. However, the `InvocationHandler` of JDK proxy may give null `args`.

  • In kotlin, `method.invoke(target, args)` is different with java, it wraps `args` into a new array
  • `method.invoke(target, *(args ?: emptyArray<Any?>()))` has unnecessary cost
The better practice is to never use kotlin to implement `InvocationHandler`.