<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
On 06/03/2023 20:20, Eirik Bjørsnøs wrote:<br>
<blockquote type="cite" cite="mid:CA+pBWhsU8JFKeyzvO5fOrVLZauZa6BkyYu_+PxVXaYkfXqLjMg@mail.gmail.com">
<div dir="ltr">:<br>
<div class="gmail_quote">
<div><br>
</div>
<div>I was not thinking of changing anything if the caller
actually specified a method. This would be just for the
default/unspecified case, in which case ZipEntry.method is
-1.</div>
<br>
</div>
</div>
</blockquote>
It would require re-specifying ZOS.setMethod to set the default
compression method for non-directory entries and re-specifying
ZOS.putNextEntry to use the STORED method as the default for
directory entries. Even so, this wouldn't ensure that directory
entries have 0 size. Given that ZOS dates from JDK 1.1 then I think
we have to cautious about changing.<br>
<br>
-Alan<br>
</body>
</html>