commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ingmar Kliche (JIRA)" <j...@apache.org>
Subject [jira] Created: (SCXML-80) SCXMLParser: Should the parser throw an exception on a parsing error?
Date Wed, 30 Jul 2008 17:35:31 GMT
SCXMLParser: Should the parser throw an exception on a parsing error?
---------------------------------------------------------------------

                 Key: SCXML-80
                 URL: https://issues.apache.org/jira/browse/SCXML-80
             Project: Commons SCXML
          Issue Type: Improvement
    Affects Versions: 0.8
            Reporter: Ingmar Kliche


I noticed that the SCXMLParser::DigestSrcAttributeRule() function only logs a message (and
returns to continue parsing at next element) in case there is trouble in resolving the src-Attribute
(i.e. to source in content from other SCXML documents). The particular use case is a wrong
fraction of the src-Attribute of the <state> tag, i.e. if the state which was refered
to using the url fraction does not exist in the target document.

Thus when using the parser it is not possible to know whether the parsing was actually successful.
In the above given use case the parser returns a valid - but incomplete - statemachine. And
this is a severe problem. 

Hence, shouldn't the parsing error bubble up, e.g. using an exception?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message