Uploaded image for project: 'JBoss VFS'
  1. JBoss VFS
  2. JBVFS-216

ClassCastException: ZipFileInflaterInputStream cannot be cast to class org.jboss.vfs.VirtualFile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • False
    • None
    • False

      After switching from JDK 17.0.2 to 17.0.7 the following exception pops up: java.lang.ClassCastException: class java.util.zip.ZipFile$ZipFileInflaterInputStream cannot be cast to class org.jboss.vfs.VirtualFile (java.util.zip.ZipFile$ZipFileInflaterInputStream is in module java.base of loader 'bootstrap'; org.jboss.vfs.VirtualFile is in unnamed module of loader 'org.jboss.vfs@3.2.17.Final-redhat-00001' @2ac1fdc4)

      We are using VirtualFile to access file inside a WAR archive.

      I assume this is related to the backport of "JDK-8273655 content-types.properties files are missing some common types" which was part of JDK 17.0.3 and the fix (WFLY-16322 Ensure proper handling of content type availability in VirtualFileURLConnection) that was provided only works for JAR files.

            ropalka Richard Opalka
            annika.selbach-ivu Annika Selbach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: