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

JRT filesystem loaded by JDK8 with URLClassLoader is not closable since JDK-8147460

XMLWordPrintable

    • b116
    • generic
    • generic
    • Verified

      jdk/internal/jrtfs/remote/RemoteRuntimeImageTest.java failed on all platforms since JDK-8147460. The test is trying to use jrtfs with JDK 8.

      I tried this test by setting jtreg option -e:JDK8_HOME=PATH_TO_JDK8U
      It throws UnsupportedOperationException when trying to close the file system loaded by JDK 8u with URLClassLoader.
      According Javadoc below, UnsupportedOperationException should be thrown in case of default file system. But I don't think JRTFS loaded by URLClassloader is a "default" file system.

      "Closing a file system will close all open channels, directory-streams, watch-service, and other closeable objects associated with this file system. The default file system cannot be closed.

      Specified by: close() in Closeable
      Throws:IOException - If an I/O error occurs
      UnsupportedOperationException - Thrown in the case of the default file system"

            sherman Xueming Shen
            xiaofeya Xiaofeng Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: