You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Josh Adams (JIRA)" <ji...@apache.org> on 2018/10/29 18:45:33 UTC
[jira] [Assigned] (DAFFODIL-1956) Terminator with leading space
causes assertion failure
[ https://issues.apache.org/jira/browse/DAFFODIL-1956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Adams reassigned DAFFODIL-1956:
------------------------------------
Assignee: Josh Adams
> Terminator with leading space causes assertion failure
> ------------------------------------------------------
>
> Key: DAFFODIL-1956
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1956
> Project: Daffodil
> Issue Type: Bug
> Components: Front End
> Affects Versions: 2.1.0
> Reporter: Steve Lawrence
> Assignee: Josh Adams
> Priority: Major
> Labels: beginner
> Fix For: 2.4.0
>
>
> User reported that dfdl:terminator=" %LF;" causes the following exception, likely due to the space at the beginning of property value. If this property (and likely others) start or end with a space, it should probably be an SDE, since they probably meant to do something like dfdl:terminator="%SP;%LF;". Exception below:
> {code}
> Exception in thread "main" java.lang.AssertionError: assertion failed
> at scala.Predef$.assert(Predef.scala:156)
> at org.apache.daffodil.processors.dfa.CreateDelimiterDFA$.buildTransitions(CreateDelimiterDFA.scala:119)
> at org.apache.daffodil.processors.dfa.CreateDelimiterDFA$.apply(CreateDelimiterDFA.scala:56)
> at org.apache.daffodil.processors.dfa.CreateDelimiterDFA$.apply(CreateDelimiterDFA.scala:69)
> at org.apache.daffodil.processors.dfa.CreateDelimiterDFA$$anonfun$apply$1.apply(CreateDelimi…fun$apply$1.apply(CreateDelimiterDFA.scala:88)
> at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
> at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
> at scala.collection.immutable.List.foreach(List.scala:381)
> at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
> at scala.collection.immutable.List.map(List.scala:285)
> at org.apache.daffodil.processors.dfa.CreateDelimiterDFA$.apply(CreateDelimiterDFA.scala:88)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)