[Bug 2786] IllegalStateException zip file closed when accessing Jar file over HTTP

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Fri Jan 15 09:41:15 UTC 2016


JiriVanek <jvanek at redhat.com> changed:

           What    |Removed                     |Added
           Priority|P5                          |P2
             Status|NEW                         |ASSIGNED

--- Comment #1 from JiriVanek <jvanek at redhat.com> ---
Befor I look into this, isn't  something like

 public boolean exists(String urlstr) {
   URL url = new URL(urlstr);  // #1
   JarURLConnection conn = (JarURLConnection) url.openConnection(); // #2
   JarFile jarFile = conn.getJarFile(); // #3
   // do some checks and set boolean results // #4
   jarFile.close(); // #5
}catch(exception ex){log(ex)}
   return result; // #6

Obvious fix? If it is unacceptable why? This may not be itw, but openjdk bug.

Also, may change to "public boolean exists(URL urlstr)" help? Maybe when url is
garbagecollected, it closes.

Proprietary javaws/plugin is including quite a lot of classes overrding base
jre classes. Sometimes really weird things pass in it.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20160115/ac60bfad/attachment.html>

More information about the distro-pkg-dev mailing list