[jboss-jira] [JBoss JIRA] (WFLY-3479) Inconsistencies in int/long in XSD and default values in Infinispan subsystem
Ingo Weiss (JIRA)
issues at jboss.org
Tue Jun 10 18:17:15 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975059#comment-12975059 ]
Ingo Weiss commented on WFLY-3479:
----------------------------------
I think long should be the proper type if, using your example, shutdown-timeout and other options are in milliseconds or similar measurement unit.
Makes sense? If so, I can try and look at this.
> 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.3#6260)
More information about the jboss-jira
mailing list