Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4991099

Applications need a way to close jar files opened by java.net.URLClassLoader and

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.2_04
    • core-libs
    • None
    • x86
    • windows_xp

      In particular, this happens as Introspector obtains bean info when a jar file appears in the classpath. This is a problem in long-running applications that need to be able to deal with newly-available versions of a previously-opened jar file. This is especially an issue on Windows systems on which the open jars cannot be overwritten by newer versions.

      In this scenario, for example, Introspector delegates to java.net.URLClassLoader which delegates to sun.misc.URLClassPath and its inner class JarLoader. The jar file is opened but never closed. Attempts from other processes to deposit an updated version of the jar file fail (on Windows) because the OS does not allow the open file to be overwritten.
      ###@###.### 2004-02-09
      ###@###.### 2004-02-09

            Unassigned Unassigned
            tjquinn Tim Quinn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: