On 06/03/2023 20:20, Eirik Bjørsnøs wrote:
:
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.
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.
-Alan