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=24115>.
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=24115

Thread safety fault in Directives when Template caching on

           Summary: Thread safety fault in Directives when Template caching
                    on
           Product: Velocity
           Version: 1.3.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Source
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When the template caching is on, concurrent thread may used at the same time 
the same compiled template.
As Directives are not designed to be stateless it may produce funny effect.
Example: #foreach


T1:     #foreach    ...    |    ...    |    ...    |    ...    |   
           c=0            c=1   c=0   c=1   c=2   c=3   c=4 
T2:                           #foreach...    |    ...    |
    ---------|-------------|-----|-----|-----|-----|-----|------->

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to