[ 
https://issues.apache.org/jira/browse/ISIS-1628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Keir Haywood updated ISIS-1628:
--------------------------------------
    Summary: Mixins requires method to be overridden in subclass.  (was: 
MixinFacet doesn't properly create domain events if abstract and invoke via the 
wrapper (ie during integ tests))

> Mixins requires method to be overridden in subclass.
> ----------------------------------------------------
>
>                 Key: ISIS-1628
>                 URL: https://issues.apache.org/jira/browse/ISIS-1628
>             Project: Isis
>          Issue Type: Improvement
>          Components: Isis Core
>    Affects Versions: 1.14.0
>            Reporter: Daniel Keir Haywood
>            Assignee: Daniel Keir Haywood
>            Priority: Minor
>             Fix For: 2.0.0-M5
>
>
> fix, don't use getDeclaredFields, instead getFields (I think... to test)
> ~~~
> because of 
> https://github.com/apache/isis/blob/69b4859f27ce857e9af75b7d1ef0ae7b42e5cc2c/core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/object/mixin/MixinFacetAbstract.java#L97
> getDeclaredFields() rather than getFields()
> to reproduce, eg HasDocumentAbstract_categoriseAbstract subclasses.
> ~~~~
> Also, necessary to override the method itself in the subclass, else
> https://github.com/apache/isis/blob/69b4859f27ce857e9af75b7d1ef0ae7b42e5cc2c/core/wrapper/src/main/java/org/apache/isis/core/wrapper/handlers/DomainObjectInvocationHandler.java#L297
> does not find the actual ObjectActionMixedIn (the mixin's ObjectActionDefault 
> does not match)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to