[
https://issues.apache.org/jira/browse/DAFFODIL-2139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16851346#comment-16851346
]
Michael Beckerle commented on DAFFODIL-2139:
--------------------------------------------
Incidently, this also blows up IBM DFDL, though for parsing as well in this
case:
{noformat}
org.apache.daffodil.tdml.TDMLExceptionImpl: (Implementation: ibm)
IBMTDMLDiagnostic: Schema Definition Error: CTDV1534E : DFDL property 'length'
must not exceed the capacity of the simple type. Element:
#xscd(/type::Data-record-format/model::sequence/schemaElement::IE2-packetDeltaCount).
{noformat}
> unparse of unsignedLong greater than signedLong maximum gives
> NumberFormatException
> -----------------------------------------------------------------------------------
>
> Key: DAFFODIL-2139
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2139
> Project: Daffodil
> Issue Type: Bug
> Components: Back End, Unparsing
> Affects Versions: 2.4.0
> Reporter: Michael Beckerle
> Priority: Major
> Fix For: 2.4.0
>
>
> Unparse of this number: 15418418292323521689 which is within range for an XSD
> xs:unsignedLong type, gives a NumberFormatException while trying to convert
> this from the text of the infoset into a value.
>
> {noformat}
> java.lang.NumberFormatException: For input string: "15418418292323521689"
> at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Long.parseLong(Long.java:592)
> at java.lang.Long.parseLong(Long.java:631)
> at scala.collection.immutable.StringLike.toLong(StringLike.scala:306)
> at scala.collection.immutable.StringLike.toLong$(StringLike.scala:306)
> at scala.collection.immutable.StringOps.toLong(StringOps.scala:29)
> at
> org.apache.daffodil.dpath.NodeInfo$PrimType$UnsignedInt$.fromXMLString(NodeInfo.scala:491)
> at
> org.apache.daffodil.dpath.NodeInfo$PrimType$UnsignedInt$.fromXMLString(NodeInfo.scala:488)
> at
> org.apache.daffodil.infoset.InfosetInputter.createElement(InfosetInputter.scala:385)
>
> {noformat}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)