stevedlawrence opened a new pull request #197: Fix non-thread safe code related 
to text date times
URL: https://github.com/apache/incubator-daffodil/pull/197
 
 
   We create an ICU Calendar object to handle parsing/unparsing text date
   times. Unfortunately, this Calendar object isn't thread safe, but we
   share it among all threads when all the DFDL calendar properties are
   constant. This can lead to random errors.
   
   To make it thread safe, change the text calendar code to never modify
   the original Calendar object, but instead create a clone of it before
   use and use the clone for all dateTime calculations. The effectively
   treats the original calendar as immutable and avoids thread safety
   issues. Also reorganize the code a bit and rename some variables to make
   the purpose of the different Calendar objects more clear.
   
   DAFFODIL-2097

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to