open fun invocableClone(): MethodInvocation
This implementation returns a shallow copy of this invocation object, including an independent copy of the original arguments array.
We want a shallow copy in this case: We want to use the same interceptor chain and other object references, but we want an independent value for the current interceptor index.
See Also
java.lang.Object#clone()
open fun invocableClone(vararg arguments: Any): MethodInvocation
This implementation returns a shallow copy of this invocation object, using the given arguments array for the clone.
We want a shallow copy in this case: We want to use the same interceptor chain and other object references, but we want an independent value for the current interceptor index.
See Also
java.lang.Object#clone()