Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5716

Fix Unparseable date on java 11

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.4.0
    • Component/s: None

      Description

      When compiling on Java 11, a number of tests fail with an error message like `java.text.ParseException: Unparseable date "" - length of date string doesn't match length of date pattern`

      With a stack trace is like below:

      java.text.ParseException: Unparseable date "12/08/2008" - length of date string doesn't match length of date pattern
      	at org.openmrs.util.OpenmrsDateFormat.parse(OpenmrsDateFormat.java:49)
      	at org.openmrs.logic.result.ResultTest.latest_shouldGetTheMostRecentResultGivenMultipleResults(ResultTest.java:132)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dkayiwa Daniel Kayiwa
                Reporter:
                dkayiwa Daniel Kayiwa
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: