Sylwester Lachiewicz created MNG-7054:
-----------------------------------------
Summary: [Test] MavenCliTest.testStyleColors failed with Java 16
and 17
Key: MNG-7054
URL: https://issues.apache.org/jira/browse/MNG-7054
Project: Maven
Issue Type: Bug
Components: Embedding
Affects Versions: 4.0.0-alpha-1
Reporter: Sylwester Lachiewicz
To reproduce - run mvn verify in maven-embedder module with Java 16 (b23+) or
Java 17
{code:java}
[INFO] Running org.apache.maven.cli.MavenCliTest
[ERROR] Tests run: 14, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.88 s
<<< FAILURE! - in org.apache.maven.cli.MavenCliTest
[ERROR] testStyleColors(org.apache.maven.cli.MavenCliTest) Time elapsed: 0.024
s <<< ERROR!
java.lang.NullPointerException
at
org.apache.maven.cli.MavenCliTest.testStyleColors(MavenCliTest.java:338)
{code}
More detailed - it fails in org.apache.maven.cli.ResolveFile#resolveFile where
baseDirectory is null
return Paths.get( baseDirectory, file.getPath() ).normalize().toFile();
Additional check added with https://bugs.openjdk.java.net/browse/JDK-8254876 ie
https://github.com/openjdk/jdk/commit/450452bb8cb617682a3eb28ae651cb829a45dcc6
--
This message was sent by Atlassian Jira
(v8.3.4#803005)