on 4/5/01 5:35 AM, "Matthew Dornquast" <[EMAIL PROTECTED]>
wrote:

> I could be wrong given I don't know the full context, but the code from the
> article on this page:
> http://jakarta.apache.org/velocity/ymtd/ymtd-generation.html  isn't thead
> safe, multiple requests coming in on different threads at the same time
> would cause init() to be called multiple times.
> 
> -Matthew

Yup. I think it has already been fixed in Tomcat (along with some other
problems...ie: the double locked checking as well), but that is the example
that is published in Jason's Servlet book that is coming out soon so I
wanted to use that because his book will be going out to hundreds of
thousands of people...

I'm more concerned with illustrating my point in the essay than pointing out
bad generation of code because that is something that can be fairly easily
fixed.

-jon

Reply via email to