ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [ant] helfper opened a new pull request #145: Override ZipOutputStream.write(int)
Date Sat, 13 Mar 2021 09:49:32 GMT

helfper opened a new pull request #145:

   `` extends from `` which
overrides `void write(int b)` to redirect its calls to `void write(byte[] b, int off, int
   `` doesn't extend the same class and currently doesn't
override `void write(int b)`. This means that calls to this method end up in `FilterOutputStream.write(int
b)`, which in turn passes them through to the underlying `OutputStream`. This bypasses all
the logic in `ZipOutputStream.write(byte[] b, int offset, int len)` (deflation and whatnot)
which produces corrupted ZIP files.
   One example where the method `void write(int b)` is ultimately invoked is by calling `java.util.jar.Manifest.write(zipOutputStream)`.
   This PR fixes this by overriding the method `void write(int b)` in ``
in the same way as `` does.

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message