You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Karl Heinz Marbaise <kh...@gmx.de> on 2018/07/29 18:21:01 UTC

maven-archiver/mave-jar-plugin - Need Help...

Hi,

can someone take a deep look at this commit (maven-archiver):

commit b2e019439a6dcd4f6ffe897cca832d9db4091fd5
Author: Karl Heinz Marbaise <kh...@apache.org>
Date:   Sat Jul 28 23:06:50 2018 +0200

     @Ignore test which looks like a JDK bug.

which contains a test 
(src/test/java/org/apache/maven/archiver/MavenArchiverTest.java#testRecreation) 
which is constantly failing on JDK 9...

Based on my current state of research this looks like a JDK 9 bug...

+
+        // Based on some experiments with a result like this:
+        // History 1532810292406 time:1532810292000 
expected:<1532810352000> but was:<1532810292000>
+        // It looks like a JDK Bug: 
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8177809
          assertEquals( "History " + history + " time:" + time , 
jarFile.lastModified(), time );


Furthermore it looks like the failing build for maven-jar-plugin looks 
like the same cause?

I would like to know if I'm just blind / oversight something ?


Kind regards
Karl Heinz Marbaise

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven-archiver/mave-jar-plugin - Need Help...

Posted by Robert Scholte <rf...@apache.org>.
Looks like the test (and main code?) needs a check for OS+JDK version.

The JDK bugreport states that it is fixed in JDK10, not in 9 (even though  
the resolution date might suggest otherwise).

To me this all seems in line.

Robert

On Sun, 29 Jul 2018 20:21:01 +0200, Karl Heinz Marbaise  
<kh...@gmx.de> wrote:

> Hi,
>
> can someone take a deep look at this commit (maven-archiver):
>
> commit b2e019439a6dcd4f6ffe897cca832d9db4091fd5
> Author: Karl Heinz Marbaise <kh...@apache.org>
> Date:   Sat Jul 28 23:06:50 2018 +0200
>
>      @Ignore test which looks like a JDK bug.
>
> which contains a test  
> (src/test/java/org/apache/maven/archiver/MavenArchiverTest.java#testRecreation)  
> which is constantly failing on JDK 9...
>
> Based on my current state of research this looks like a JDK 9 bug...
>
> +
> +        // Based on some experiments with a result like this:
> +        // History 1532810292406 time:1532810292000  
> expected:<1532810352000> but was:<1532810292000>
> +        // It looks like a JDK Bug:  
> https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8177809
>           assertEquals( "History " + history + " time:" + time ,  
> jarFile.lastModified(), time );
>
>
> Furthermore it looks like the failing build for maven-jar-plugin looks  
> like the same cause?
>
> I would like to know if I'm just blind / oversight something ?
>
>
> Kind regards
> Karl Heinz Marbaise
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org