[Bug 3351] closing jarfile on member of classpath is causing this member to be unusable for all classloaders

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Mon Apr 10 16:50:22 UTC 2017


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3351

--- Comment #5 from JiriVanek <jvanek at redhat.com> ---
Ok. So I reproduced outside of Kemtrak. This issue really is ITW specific and
not jdk specific.

If you insists on your jarchecks, you can make them run in ITW in following
way:




localObject3 = (java.net.JarURLConnection)localURL.openConnection();
          java.util.jar.JarFile localJarFile =
((java.net.JarURLConnection)localObject3).getJarFile();
          str9 = localJarFile.getName();
          i3 = localJarFile.size();
insert here [1]
          localJarFile.close
...
          org.freixas.jcalendar.JCalendarCombo localJCalendarCombo = new
org.freixas.jcalendar.JCalendarCombo(java.util.Calendar.getInstance(),
Locale.getDefault(), 1, true, "HH:mm:ss");


[1]
try{
          org.freixas.jcalendar.JCalendarCombo localJCalendarCombo = new
org.freixas.jcalendar.JCalendarCombo(java.util.Calendar.getInstance(),
Locale.getDefault(), 1, true, "HH:mm:ss");
} catch (Exeption ex){
Log.info(ex)
}


By calling the jcalendar jar *BEFORE* closing it, is causing the counter of
connections to open for ITW to ++ (so to 2) then closing will reduce to 1, and
so it keeps open.



I will try to fix this in ITW.

-- 
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/20170410/37d494fa/attachment.html>


More information about the distro-pkg-dev mailing list