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

Circular reference when loading JDKModuleFinder

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.8.1.Final
    • Fix Version/s: 1.8.2.Final
    • Component/s: Core
    • Labels:
      None

      Description

      Having a test like:

      import org.jboss.modules.JDKModuleFinder;
      import org.junit.Test;
      
      public class SmokeTest
      {
         @Test
         public void test()
         {
            JDKModuleFinder.getInstance();
         }
      }
      

      It fails with:

      Caused by: java.lang.IllegalArgumentException: Module finder cannot be null
      	at org.jboss.modules.ModuleLoader.safeClone(ModuleLoader.java:193)
      	at org.jboss.modules.ModuleLoader.<init>(ModuleLoader.java:174)
      	at org.jboss.modules.ModuleLoader.<init>(ModuleLoader.java:183)
      	at org.jboss.modules.Utils.<clinit>(Utils.java:44)
      	... 27 more
      

      This looks to be caused by circular references in the code.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dmlloyd David Lloyd
                  Reporter:
                  gastaldi George Gastaldi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: