Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-168

Cannot iterate over module resources on WinOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.2.2.Final, 1.3.0.Beta2
    • None
    • Core
    • None

          Caused by: java.lang.IllegalArgumentException: Cannot compare relative and absolute paths
              at org.jboss.modules.PathUtils.isChild(PathUtils.java:226)
              at org.jboss.modules.JarFileResourceLoader$1.hasNext(JarFileResourceLoader.java:243)
              at org.jboss.modules.ModuleClassLoader$2.hasNext(ModuleClassLoader.java:657)
              at org.jboss.osgi.resolver.spi.AbstractResourceBuilder.loadFrom(AbstractResourceBuilder.java:347)
      

      The code in AbstractResourceBuilder is

         Iterator<Resource> it = module.getClassLoader().iterateResources("", true);
         while (it.hasNext())
      

      Seems to be happening on WinOS only

            tomazcerar Toma┼ż Cerar (Inactive)
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: