Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-879

JazzChangeLogCommandTest#testListChangesetConsumerWithTimeOnly() fails with NPE on Java 10

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.5
    • 1.10.0
    • None

    Description

      Surefire says:

      Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.917 sec <<< FAILURE! - in org.apache.maven.scm.provider.jazz.command.changelog.JazzChangeLogCommandTest
      testListChangesetConsumerWithTimeOnly(org.apache.maven.scm.provider.jazz.command.changelog.JazzChangeLogCommandTest)  Time elapsed: 0.678 sec  <<< ERROR!
      java.lang.NullPointerException
              at org.apache.maven.scm.provider.jazz.command.changelog.JazzChangeLogCommandTest.testListChangesetConsumerWithTimeOnly(JazzChangeLogCommandTest.java:294)

      The error is rooted in org.apache.maven.scm.provider.jazz.command.changelog.JazzListChangesetConsumer.processModifiedLine(String). It does not parse the given time with JAZZ_TIMESTAMP_PATTERN_TIME and Locale.ENGLISH, but relies on the system locale which will fail for non-English parsing AM/PM.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: