You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by GitBox <gi...@apache.org> on 2019/10/31 17:03:54 UTC

[GitHub] [incubator-daffodil] jadams-tresys commented on a change in pull request #281: Remove heap sized limit for parsing

jadams-tresys commented on a change in pull request #281: Remove heap sized limit for parsing
URL: https://github.com/apache/incubator-daffodil/pull/281#discussion_r341259226
 
 

 ##########
 File path: daffodil-io/src/main/scala/org/apache/daffodil/io/InputSourceDataInputStream.scala
 ##########
 @@ -531,7 +531,15 @@ final class InputSourceDataInputStream private (val inputSource: InputSource)
     val m = markPool.getFromPool(requestorID)
     m.assignFrom(cst)
     markStack.push(m)
-    inputSource.lockPosition(m.bytePos0b)
+    try {
+      inputSource.lockPosition(m.bytePos0b)
+    } catch {
+      case b: BacktrackingException => {
 
 Review comment:
   Makes sense.  Will change.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services