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

Unexpected error when accessing collection through wrapper.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.16.2
    • Fix Version/s: 2.0.0-M5
    • Component/s: Isis Core
    • Labels:
      None

      Description

      As reported by Gabriel Terwesten <gabriel@terwesten.net> [1]

      Inside of integration tests i can’t seem to access collections through the getter if the object is wrapped. From the documentation I got the impression that that should be possible.

      This is the offending line:

      assertThat(wrap(food).getCustomUnits()).hasSize(1);

      IllegalArgumentException: d.m.c.d.i.Food#customUnits: more than one ImperativeFacet for method getCustomUnits , with inconsistent intents: ...
      
      at o.a.i.c.m.facets.ImperativeFacet$Util.getIntent(ImperativeFacet.java:167)
      

      [1] https://lists.apache.org/thread.html/cd92d8cd28ae877104fc965f83ca90b98e2e8188f464b65181e79a27@%3Cusers.isis.apache.org%3E

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hobrom Andi Huber
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: