velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8838] - context utility method calls are not thread safe
Date Tue, 07 May 2002 13:10:38 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=8838>.
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=8838

context utility method calls are not thread safe





------- Additional Comments From ivan.bella@capita.com  2002-05-07 13:10 -------
I found the problem!  The parameters being passed into the method call
are being filled into the "params" attribute of the ASTMethod.  Since
this method is of course being called concurrently in my threads, the
same "params" attribute is being filled concurrently and hence this
is not thread safe.

The question is now, who fixes this.  In my version, I will temporarily
make the params a reallocated resource each time or something like that.
Alternatively we can synchronize the execute method.  Any opinions?
                        Ivan Bella

--
To unsubscribe, e-mail:   <mailto:velocity-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-dev-help@jakarta.apache.org>


Mime
View raw message