Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6102

org.jboss.as.test.layers.Scanner cannot handle dependencies with explicit slots

    XMLWordPrintable

Details

    Description

      In getDependencies():

      Path path = Paths.get(modulePath.toString(), module.replaceAll("\\.", "/"),
              "main/module.xml");
      if (!Files.exists(path)) {
          // pseudo module
          return;
      }
      

      This is incorrect in general and results in LayersTestCase failures in full WF on Windows:

      java.nio.file.InvalidPathException: Illegal char <:> at index 135: C:\BuildAgent\work\90f1d30175b301ce\testsuite\layers\target\layers-results\test-all-layers\modules\system\layers\base\javax/servlet/api:h2\main/module.xml
      	at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
      	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
      	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
      	at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
      	at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
      	at java.base/java.nio.file.Path.of(Path.java:147)
      	at java.base/java.nio.file.Paths.get(Paths.java:69)
      	at org.jboss.as.test.layers.Scanner.getDependencies(Scanner.java:238)
      

      Attachments

        Activity

          People

            bstansbe@redhat.com Brian Stansberry
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: