Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-8797

HistoryCleanupHelper uses not thread safe SimpleDateFormat as class field

    XMLWordPrintable

Details

    Description

      The HistoryCleanupHelper has a
      SimpleDateFormat instance as class field which it uses unsynchronized.

      From the SimpleDateFormat docs:

      Date formats are not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally.

      The SimpleDateFormat for example uses a calendar field which is modified during parsing of a date.

      AT:

      • the HistoryCleanupHelper uses the SimpleDateFormat in a thread safe way or a thread safe alternative

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              nikola.koevski Nikola Koevski
              roman.smirnov Roman Smirnov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce