stevedlawrence commented on a change in pull request #259: Incremental progress 
on schema compilation space/speed issue.
URL: https://github.com/apache/incubator-daffodil/pull/259#discussion_r301570545
 
 

 ##########
 File path: 
daffodil-core/src/main/scala/org/apache/daffodil/dsom/SchemaComponent.scala
 ##########
 @@ -200,7 +238,7 @@ trait SchemaComponent
         case sgd: GlobalSequenceGroupDef => "sgd=" + sgd.namedQName
         case cg: Choice => "c" + (if (cg.position > 1) cg.position else "")
         case sg: Sequence => "s" + (if (sg.isHidden) "h" else "") + (if 
(sg.position > 1) sg.position else "")
-        case sc => Assert.invariantFailed("Unexpected component type: " + sc)
+        case unknown => "unk=" + unknown.toString()
 
 Review comment:
   Are there cases where things are expected to be uknown? I kindof prefer the 
invarient here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to