Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-215

migration tool doesn't convert java.text.SimpleDateFormat correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.2.0
    • 6.1.0
    • Migration Tool
    • None

      When running the migration tool shipped by BPMS 6.1 against repository generated by BRMS 5.2, the following issue occurs:

      *********************************************************************************
      In 5.2, any rule that uses a java.util.Date produces the following line in the .rdrl file:
      java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd-MMM-yyyy");

      During migration, however, the line is transformed to an invalid form that will throw exceptions at runtime:
      java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("null");

      If I save the file via the 6.1 UI, the SimpleDateFormat line no longer exists in the rule. Since we have over a hundred projects, that is not necessarily a valid option.
      *********************************************************************************

      This bz is a split from bug 1216173 where all of the supporting attachments could be found.

            jschatte@redhat.com Jan Schatteman
            rhn-support-ghu Gary Hu
            Marek Winkler Marek Winkler (Inactive)
            Marek Winkler Marek Winkler (Inactive)
            Andrea Hoffer, Edson Tirelli, Lukáš Petrovický (Inactive), Tibor Zimányi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: