You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Daniel Keir Haywood (Jira)" <ji...@apache.org> on 2021/01/22 09:41:00 UTC
[jira] [Updated] (ISIS-1628) Mixins requires method to be
overridden in subclass.
[ https://issues.apache.org/jira/browse/ISIS-1628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Keir Haywood updated ISIS-1628:
--------------------------------------
Description:
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)
was:
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)
> 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
>
>
> 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)