[
https://issues.apache.org/jira/browse/DAFFODIL-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16793657#comment-16793657
]
Michael Beckerle commented on DAFFODIL-2097:
--------------------------------------------
So this happens because the CalendarEv gets evaluated once only, i.e., it is
assumed to be a constant, so the same value for the calendar is returned.
Seems like we need to use a calendar stored in the PState/UState.
> Non-thread safe code related to EvCalendar
> ------------------------------------------
>
> Key: DAFFODIL-2097
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2097
> Project: Daffodil
> Issue Type: Task
> Components: Back End
> Reporter: Steve Lawrence
> Assignee: Steve Lawrence
> Priority: Major
> Fix For: 2.4.0
>
>
> When we use the EvCalendar, this results in a calendar that is often shared
> among threads. Since this calendar is modify by the SimpleDateTime parse and
> format functins, different threads using the same calendar could interact and
> cause spurious failures.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)