[ http://issues.apache.org/jira/browse/TAPESTRY-271?page=all ] Brian K. Wallace resolved TAPESTRY-271: ---------------------------------------
Resolution: Fixed Moved calendar from instance to local variable. > DateValidator Concurrency Bug > ----------------------------- > > Key: TAPESTRY-271 > URL: http://issues.apache.org/jira/browse/TAPESTRY-271 > Project: Tapestry > Type: Bug > Components: Framework > Versions: 3.0.2 > Environment: All > Reporter: Hanson Char > Assignee: Brian K. Wallace > Fix For: 3.0.5 > > There appears to be a concurrency bug in DateValidator: > The "_calendar" member field in DateValidator is apparently not > thread-safe. The only place it is used is within the toObject() > method, which modifies the time of _calendar. To resolve this issue, > this member variable should be changed to be a local variable, and > simply replace the code in toObject() > from > if (_calendar == null) > _calendar = new GregorianCalendar(); > to > Calendar calendar = new GregorianCalendar(); -- 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]