On Mar 6, 2023, at 2:44 PM, Alan Bateman <alan.bate...@oracle.com<mailto:alan.bate...@oracle.com>> wrote:
On 06/03/2023 19:16, Lance Andersen wrote: : So I guess I do not see a huge downside, however we might want to look at a property to adjust in the unlikely event the unexpected occurs? Alan thoughts? Yeah, the jar tool does the right thing and writes directories entries with the STORED method and a size of 0. Eirik's mail mentions that 7% of Spring Petclinic dependences are directories. It might be interesting to dig into that to see how they are generated, is it mostly maven-jar-plugin and if so, which APIs is it using? Changing ZOS.putNextEntry to ignore the method/size provided by the caller would change long standing behavior, and Hyrum's Law has it that somebody will notice. This may be something for an API note rather than an implementation change. That is what I was thinking (once bitten twice shy). I agree an API note is probably best Best Lance -Alan [cid:E1C4E2F0-ECD0-4C9D-ADB4-B16CA7BCB7FC@home] Lance Andersen | Principal Member of Technical Staff | +1.781.442.2037 Oracle Java Engineering 1 Network Drive Burlington, MA 01803 lance.ander...@oracle.com<mailto:lance.ander...@oracle.com>