Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1938

[WON'T FIX] Unable to specify FakeDataModule as a dependency using ModuleAbstract#withAdditionalDependencies

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.16.2
    • Fix Version/s: 1.18.0
    • Component/s: Core
    • Labels:
      None

      Description

      as a workaround, had to override getDependencies()

      java.lang.IllegalArgumentException: Module domainapp.modules.PetClinicModule has returned class org.isisaddons.module.fakedata.FakeDataModule from getAdditionalModules(). This class implements 'Module' interface so should instead be returned from getDependencies()
      
      at org.apache.isis.applib.Module$Util.transitiveAdditionalModulesOf(Module.java:150)
      at org.apache.isis.applib.ModuleOrBuilderAbstract.withTransitiveFrom(ModuleOrBuilderAbstract.java:66)
      at org.apache.isis.applib.AppManifestAbstract2$Builder.<init>(AppManifestAbstract2.java:99)
      at org.apache.isis.applib.AppManifestAbstract2$Builder.forModule(AppManifestAbstract2.java:92)
      at org.apache.isis.core.runtime.headless.IsisSystemBootstrapper.<init>(IsisSystemBootstrapper.java:60)
      at org.apache.isis.core.runtime.headless.HeadlessWithBootstrappingAbstract.<init>(HeadlessWithBootstrappingAbstract.java:94)
      at org.apache.isis.core.integtestsupport.IntegrationTestAbstract3.<init>(IntegrationTestAbstract3.java:160)
      at org.apache.isis.core.integtestsupport.IntegrationTestAbstract3.<init>(IntegrationTestAbstract3.java:154)
      at domainapp.modules.impl.PetClinicModuleIntegTestAbstract.<init>(PetClinicModuleIntegTestAbstract.java:34)
      at domainapp.modules.impl.visits.integtests.Visit_enterOutcome_IntegTest.<init>(Visit_enterOutcome_IntegTest.java:37)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:217)
      at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              danhaywood Daniel Keir Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: