User account creation filtered due to spam.

Bug 31649 - GZIPInputStream constructor should throw EOFException on empty stream
Summary: GZIPInputStream constructor should throw EOFException on empty stream
Status: UNCONFIRMED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-21 15:30 UTC by Jeroen Frijters
Modified: 2007-04-21 15:30 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Frijters 2007-04-21 15:30:16 UTC
The following code (adapted from the JRuby test suite) should throw an EOFException, but doesn't.

import java.util.zip.*;
import java.io.*;

class gzip
{
  public static void main(String[] args) throws Exception
  {
    new GZIPInputStream(new ByteArrayInputStream(new byte[0]));
  }
}