[
https://issues.apache.org/jira/browse/JCR-1505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christophe Lombart resolved JCR-1505.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5
With the current head, this problem is solved. I added unit tests for this use
case.
> Improve handling of inherited mixins
> ------------------------------------
>
> Key: JCR-1505
> URL: https://issues.apache.org/jira/browse/JCR-1505
> Project: Jackrabbit
> Issue Type: Improvement
> Components: jackrabbit-ocm
> Affects Versions: 1.4
> Reporter: Duncan McIntyre
> Assignee: Christophe Lombart
> Priority: Minor
> Fix For: 1.5
>
>
> If an abstract class is annotated with a mixin type, the annotation must be
> repeated in concrete classes.
> E.g.
> @Node(jcrMixinTypes="mix:referenceable", isAbstract=true)
> public abstract class Content {
> ...
> ...}
> /**
> * This class will not be referenceable
> **/
> @Node(extend=Content.class)
> public class Page extends Content {
> ...
> ...
> }
> /**
> * But this one will
> **/
> @Node(extend=Content.class, jcrMixinTypes="mix:referenceable")
> public class Folder extends Content {
> ...
> ...
> }
> It would be nice if the annotation was inherited by default.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.