https://issues.apache.org/bugzilla/show_bug.cgi?id=53783
Konstantin Kolinko <knst.koli...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS| |All --- Comment #2 from Konstantin Kolinko <knst.koli...@gmail.com> --- Does specification allow JAR files that do not have directory entries? 1. The "jar" tool always creates entries for directories. There are no options to omit them, http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/jar.html 2. The spec says "in the META-INF/resources directory of a JAR file". There is no such "directory" in this resource.jar. That said, I am OK with the patch. For stream access to a jar file (o.a.t.util.scan.UrlJar) the entryExists() method does such iteration internally, so proposed patch would not slow it down. For random access to a jar file (o.a.t.util.scan.FileUrlJar) the ZIP archive index is read when JAR file is opened and iteration over the index (JarFile.entries()) should not waste much time. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org