Michael Osipov created SCM-879:
----------------------------------

             Summary: 
JazzChangeLogCommandTest#testListChangesetConsumerWithTimeOnly() fails with NPE 
on Java 10
                 Key: SCM-879
                 URL: https://issues.apache.org/jira/browse/SCM-879
             Project: Maven SCM
          Issue Type: Bug
          Components: maven-scm-provider-jazz
    Affects Versions: 1.9.5
         Environment: Apache Maven 3.5.3 
(3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T20:49:05+01:00)
Maven home: D:\Entwicklung\Programme\apache-maven-3.5.3\bin\..
Java version: 10, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk-10
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
            Reporter: Michael Osipov
            Assignee: Michael Osipov
             Fix For: 1.9.6


Surefire says:
{noformat}
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){noformat}
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}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to