Andi Huber created ISIS-1980:
--------------------------------

             Summary: Unexpected error when accessing collection through 
wrapper.
                 Key: ISIS-1980
                 URL: https://issues.apache.org/jira/browse/ISIS-1980
             Project: Isis
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.16.2
            Reporter: Andi Huber
             Fix For: 1.16.3


As reported by Gabriel Terwesten <[email protected]> [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);


{noformat}
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)
{noformat}


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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to