[ http://issues.apache.org/jira/browse/VELOCITY-216?page=comments#action_12329770 ]
Will Glass-Husain commented on VELOCITY-216: -------------------------------------------- Geoffrey - any thoughts on this? We're looking at bugs to fix before the 1.5 release. We may close this if we can't figure out the specific problem with #foreach. Thanks. > Thread safety fault in Directives when Template caching on > ---------------------------------------------------------- > > Key: VELOCITY-216 > URL: http://issues.apache.org/jira/browse/VELOCITY-216 > Project: Velocity > Type: Bug > Components: Source > Versions: 1.3.1 > Environment: Operating System: All > Platform: All > Reporter: Geoffrey Picron > Assignee: Velocity-Dev List > Fix For: 1.5 > Attachments: ThreadPartionedResourceCacheImpl.java > > 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... | ... | > ---------|-------------|-----|-----|-----|-----|-----|-------> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
