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

JazzChangeLogCommandTest#testListChangesetConsumerWithTimeOnly() fails with NPE on Java 10

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.5
    • Fix Version/s: 1.10.0
    • Labels:
      None
    • Environment:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: