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 2021/04/27 20:52:15 UTC
[GitHub] [daffodil] tuxji commented on a change in pull request #536: WIP: Added -Y warning check options
tuxji commented on a change in pull request #536:
URL: https://github.com/apache/daffodil/pull/536#discussion_r618411715
##########
File path: daffodil-io/src/main/scala/org/apache/daffodil/io/DataOutputStreamImplMixin.scala
##########
@@ -1078,7 +1080,7 @@ trait DataOutputStreamImplMixin extends DataStreamCommonState
setMaybeRelBitLimit0b(savedBitLimit0b, true)
}
- final override def validateFinalStreamState: Unit = {
+ final override def validateFinalStreamState(): Unit = {
Review comment:
IDEA told me the base DataStreamCommon.validateFinalStreamState() has one caller: line 520 in PState.scala (PState.verifyFinalState). The object calling validateFinalStreamState() is var dataInputStream: InputSourceDataInputStream, a mutable member field of PState.
PState.verifyFinalState() has one caller: line 513 in DataProcessor.scala (DataProcessor.doParse). The object calling verifyFinalState() is state: PState, an input parameter of doParse.
DataProcessor.doParse has one caller: line 436 in DataProcessor.scala (DataProcessor.parse). The object calling doParse is DataProcessor itself and the input parameter it is passing is val state: PState = PState.createInitialPState(..., input, ...), a local object defined inside doParse. The input: InputSourceDataInputStream is an input parameter of DataProcessor.parse.
DataProcessor.parse has 12 callers including Main.scala in daffodil-cli, although I see the call happening in a case of a match expression with the other case calling parseWithSAX. Does Daffodil have two code paths (parsing without SAX and parsing with SAX)? I would think we still test the parsing without SAX code path in CLI and unit tests, especially with all the other 11 calls I see going on, but that's all I can figure out.
--
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