Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1980

Unexpected error when accessing collection through wrapper.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.16.2
    • 2.0.0-M5
    • Core
    • 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

            danhaywood Daniel Keir Haywood
            hobrom Andi Huber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: