@@ -44,27 +44,28 @@ class VectorChain(
4444
4545 override fun proceed (): Any? = internalProceed(thisObj, args)
4646
47- override fun proceed (args : Array <Any ?>): Any? = internalProceed(thisObj, args )
47+ override fun proceed (currentArgs : Array <Any ?>): Any? = internalProceed(thisObj, currentArgs )
4848
4949 override fun proceedWith (thisObject : Any ): Any? = internalProceed(thisObject, args)
5050
51- override fun proceedWith (thisObject : Any , args : Array <Any ?>): Any? = internalProceed(thisObject, args)
51+ override fun proceedWith (thisObject : Any , currentArgs : Array <Any ?>): Any? =
52+ internalProceed(thisObject, currentArgs)
5253
5354 private fun internalProceed (thisObject : Any? , currentArgs : Array <Any ?>): Any? {
5455 proceedCalled = true
5556
5657 // Reached the end of the modern hooks; trigger the original executable (and legacy hooks)
5758 if (index >= hooks.size) {
58- return executeDownstream { terminal(thisObject, args ) }
59+ return executeDownstream { terminal(thisObject, currentArgs ) }
5960 }
6061
6162 val record = hooks[index]
62- val nextChain = VectorChain (executable, thisObject, args , hooks, index + 1 , terminal)
63+ val nextChain = VectorChain (executable, thisObject, currentArgs , hooks, index + 1 , terminal)
6364
6465 return try {
6566 executeDownstream { record.hooker.intercept(nextChain) }
6667 } catch (t: Throwable ) {
67- handleInterceptorException(t, record, nextChain, thisObject, args )
68+ handleInterceptorException(t, record, nextChain, thisObject, currentArgs )
6869 }
6970 }
7071
0 commit comments