You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Li Jing Qin (JIRA)" <ji...@apache.org> on 2009/06/01 06:56:07 UTC
[jira] Updated: (HARMONY-6217) problem with
DeflaterOutputStream/Deflater
[ https://issues.apache.org/jira/browse/HARMONY-6217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Li Jing Qin updated HARMONY-6217:
---------------------------------
Attachment: HARMONY-6217.diff
Would anyone want to try this?
> problem with DeflaterOutputStream/Deflater
> ------------------------------------------
>
> Key: HARMONY-6217
> URL: https://issues.apache.org/jira/browse/HARMONY-6217
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M10
> Environment: RedHat EL 5 x86
> Reporter: Kyle Cho
> Priority: Minor
> Attachments: HARMONY-6217.diff
>
>
> The test below fails.
> import java.util.zip.*;
> import java.io.*;
> class Decomp {
> public static void main(String args[]) throws Exception
> {
> double data[] = {1.0, 2.0, 3.0, 4.0, 5.0};
> Deflater def = new Deflater();
> DataOutputStream dos = new DataOutputStream(new DeflaterOutputStream(new FileOutputStream("data.txt"), def));
> dos.writeInt(data.length);
> for (int i = 0; i < data.length; i++)
> dos.writeDouble(data[i]);
> dos.close();
> System.out.println("Total written: "+def.getTotalOut());
> }
> }
> Uncaught exception in main:
> java.lang.IllegalStateException
> at java.util.zip.Deflater.getTotalOut(Deflater.java:282)
> at Decomp.main(Decomp.java:13)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.