commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar (JIRA)" <>
Subject [jira] Resolved: (SCXML-80) SCXMLParser: Should the parser throw an exception on a parsing error?
Date Fri, 14 Nov 2008 23:06:46 GMT


Rahul Akolkar resolved SCXML-80.

    Resolution: Fixed

This will now result in a SAXException (which the parse() methods already throw), and has
been fixed in trunk.

> SCXMLParser: Should the parser throw an exception on a parsing error?
> ---------------------------------------------------------------------
>                 Key: SCXML-80
>                 URL:
>             Project: Commons SCXML
>          Issue Type: Improvement
>    Affects Versions: 0.8
>            Reporter: Ingmar Kliche
>             Fix For: 0.9
> 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.

View raw message