Steve Lawrence created DAFFODIL-1956:
----------------------------------------

             Summary: 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
             Fix For: 2.2.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)

Reply via email to