You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/09/25 19:14:07 UTC

DO NOT REPLY [Bug 12997] - Call the method as soon as the last parameter is encountered

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12997>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12997

Call the method as soon as the last parameter is encountered

smanux@lfjr.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable



------- Additional Comments From smanux@lfjr.net  2002-09-25 17:14 -------
The patch i'm suggesting do the following :

- the invocation job is moved from then end() method to a doMethodCall() method
in the CallMethodRule class. This will allow the last CallParamRule to call it
directly. It could call end() instead but i think it's cleaner to separate it
this way.

- the CallMethodRule instance is pushed on the parameter stack right before the
parameter array. This is how CallParamRule gets the reference of it's parent
CallMethodRule to call doMethodCall(). It's removed from the stack along with
the parameter array in the doMethodCall() method.

- begin() in CallParamRule will check if all the needed parameters are known (ie
not null), if so it'll peek the CallMethodRule object from the parameter stack
and call doMethodCall().

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>