You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2023/06/07 16:24:00 UTC
[jira] [Created] (DAFFODIL-2818) Failed assertion when parsing text with negative zero value
Steve Lawrence created DAFFODIL-2818:
----------------------------------------
Summary: Failed assertion when parsing text with negative zero value
Key: DAFFODIL-2818
URL: https://issues.apache.org/jira/browse/DAFFODIL-2818
Project: Daffodil
Issue Type: Bug
Components: Back End
Affects Versions: 3.5.0
Reporter: Steve Lawrence
Assignee: Steve Lawrence
Fix For: 3.5.0
If a text number parses as negative zero, ICU returns a Double which fails an assertion where we expect only infinity or NaN.
{code}
org.apache.daffodil.lib.exceptions.Abort: Invariant broken: d.isNaN().||(d.isInfinite())
[error] org.apache.daffodil.lib.exceptions.Assert$.abort(Assert.scala:143)
[error] org.apache.daffodil.runtime1.processors.parsers.ConvertTextStandardNumberParser.parse(ConvertTextStandardNumberParser.scala:235)
[error] org.apache.daffodil.runtime1.processors.parsers.Parser.parse1(Parser.scala:153)
[error] org.apache.daffodil.runtime1.processors.parsers.Parser.parse1$(Parser.scala:147), took 0.089 sec
{code}
We need to also allow the edge case where ICU returns a Double for negative zero.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)