[jboss-jira] [JBoss JIRA] (WFLY-3479) Inconsistencies in int/long in XSD and default values in Infinispan subsystem
Radoslav Husar (JIRA)
issues at jboss.org
Wed Jun 11 12:26:38 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975391#comment-12975391 ]
Radoslav Husar commented on WFLY-3479:
--------------------------------------
I believe the rule is to use the original API's type, i.e. when mapping AS configuration to Infinispan configuration.
[~iweiss], I have already crawled the Infinispan/JGroups subsystems, do you maybe want to check other subsystems?
> Inconsistencies in int/long in XSD and default values in Infinispan subsystem
> -----------------------------------------------------------------------------
>
> Key: WFLY-3479
> URL: https://issues.jboss.org/browse/WFLY-3479
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Clustering
> Affects Versions: 8.1.0.Final
> Reporter: Radoslav Husar
> Assignee: Radoslav Husar
> Priority: Trivial
> Fix For: 9.0.0.CR1
>
>
> e.g.
> {code}
> static final SimpleAttributeDefinition SHUTDOWN_TIMEOUT = new SimpleAttributeDefinitionBuilder(ModelKeys.SHUTDOWN_TIMEOUT, ModelType.LONG, true)
> .setXmlName(Attribute.SHUTDOWN_TIMEOUT.getLocalName())
> .setAllowExpression(true)
> .setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES)
> .setDefaultValue(new ModelNode().set(25000))
> .build()
> ;
> {code}
> specifies long as the type, but the default value is int, moreover xsd also says int
> {code}
> <xs:attribute name="shutdown-timeout" type="xs:int" default="25000">
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jboss-jira
mailing list