[jboss-jira] [JBoss JIRA] (WFCORE-795) Attribute groups (and allowedValues) not inherited by further attributes.

Kabir Khan (JIRA) issues at jboss.org
Fri Jul 3 09:31:02 EDT 2015


    [ https://issues.jboss.org/browse/WFCORE-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086315#comment-13086315 ] 

Kabir Khan commented on WFCORE-795:
-----------------------------------

Changed the title of this Jira since looking at the code it does not copy the allowedValues field either.

> Attribute groups (and allowedValues) not inherited by further attributes.
> -------------------------------------------------------------------------
>
>                 Key: WFCORE-795
>                 URL: https://issues.jboss.org/browse/WFCORE-795
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Domain Management
>            Reporter: Darran Lofthouse
>            Assignee: Kabir Khan
>              Labels: affects_elytron
>             Fix For: 2.0.0.Alpha6
>
>
> Take the following attribute defintion: -
> {code}
>     static final SimpleAttributeDefinition PATH = new SimpleAttributeDefinitionBuilder(ElytronDescriptionConstants.PATH, ModelType.STRING, true)
>         .setAllowExpression(true)
>         .setMinSize(1)
>         .setAttributeGroup(ElytronDescriptionConstants.FILE)
>         .setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
>         .build();
> {code}
> If this is used as a basis for a new attribute: -
> {code}
>     static final SimpleAttributeDefinition PATH =
>             new SimpleAttributeDefinitionBuilder(ElytronDescriptionConstants.PATH, FileAttributeDefinitions.PATH)
>                     .setAttributeGroup(ElytronDescriptionConstants.FILE)
>                     .setAllowNull(false)
>                     .build();
> {code}
> The attribute group was not inherited and needed to be manually set again.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list