Thanks for the test.
I could confirm that with JDK 1.9-b66 (64bit) and CommonsCompress 1.9 on
Windows7 64bit.

Finished loop: 1246 <<< different numbers here
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 26 <<<
always the same number here

tried on several JDK versions with a maximum count of 5000 runs:
1.5.0_22-b03 --> works fine
1.6.0_43-b01 --> works fine (also faster than 1.5)
1.7.0_21-b11 --> works fine (another bit faster than 1.6)
1.8.0_31-b13 --> works fine (again a little bit faster than 1.7)
1.9.0-ea-b66 --> fail


Havent an earlier version of 1.9 on my machine. b66 had deinstalled that ;)


Jan



> -----Ursprüngliche Nachricht-----
> Von: Stefan Bodewig [mailto:bode...@apache.org]
> Gesendet: Freitag, 29. Mai 2015 21:01
> Cc: d...@ant.apache.org; dev@commons.apache.org; Rory O'Donnell; Dalibor
> Topic; Balchandra Vaidya; Vivek Theeyarath
> Betreff: Re: [compress] JDK 9 b64 breaks bzip2 decompression
> 
> I've stripped down the test case to
> 
> -------------------------------------
> 
> import java.io.*;
> import
> org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStrea
> m;
> import org.apache.commons.compress.utils.IOUtils;
> 
> public class Bzip2DecompressorLoop {
>     public static void main(String[] args) throws IOException {
>         int loops = 0;
>         while (true) {
>             ByteArrayOutputStream devNull = new
> ByteArrayOutputStream();
>             BZip2CompressorInputStream in = new
> BZip2CompressorInputStream(new FileInputStream("bla.tar.bz2"));
>             IOUtils.copy(in, devNull);
>             System.err.println("Finished loop: " + (loops++));
>         }
>     }
> }
> 
> -------------------------------------
> 
> compile it against Commons Compress 1.9 and use
> https://svn.apache.org/repos/asf/commons/proper/compress/trunk/src/test
> /resources/bla.txt.bz2
> 
> It's not always the same number but somewhere around "loop 53" I get a
> "BZip2 CRC error" when using JDK 9 b64 - this is after decompressing
> the same file several times without any problems.
> 
> Cheers
> 
>         Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to