commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12997] - Call the method as soon as the last parameter is encountered
Date Wed, 25 Sep 2002 17:14:07 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message