IssueActionComparator causes a ClassCastException

XMLWordPrintable

    • 3.07

      IssueActionComparator class gets dates from two actions calling getTimePerformed() method. This method returns Date object, however not all implementations of IssueAction return an instance of java.util.Date class, some return java.sql.Timestamp. If Timestamp is returned it throws a ClassCastException when compared with Date as per its javadoc

      The comparison needs to be modified in order to avoid this scenario.

              Assignee:
              TimP
              Reporter:
              Dushan Hanuska [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified