You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ales Dolecek (JIRA)" <ji...@apache.org> on 2008/10/23 21:24:44 UTC
[jira] Created: (SCXML-86) Using initial attribute of state ends
with IllegalArgumentException
Using initial attribute of state ends with IllegalArgumentException
-------------------------------------------------------------------
Key: SCXML-86
URL: https://issues.apache.org/jira/browse/SCXML-86
Project: Commons SCXML
Issue Type: Bug
Affects Versions: 0.8
Reporter: Ales Dolecek
Parsing following state fails:
<state id="parent" initial="child">
<state id="child"/>
</state>
using <initial> works:
<state id="parent>
<initial>
<transition target="child"/>
</initial>
<state id="child"/>
</state>
I belive it is because when digester hits the parent state it does not know how to resolve IDREF to child, because it was not parsed yet. SCXML solve this by invoking #setInitialstate(String) on Rule#begin() and #setInitialTarget(TransitionTarget) later.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SCXML-86) Using initial attribute of state ends
with IllegalArgumentException
Posted by "Rahul Akolkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SCXML-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rahul Akolkar resolved SCXML-86.
--------------------------------
Resolution: Fixed
This has been fixed in SVN trunk. We can already resolve IDREFs anywhere in the document, the support for the initial attribute simply wasn't added (it is now).
If possible, please build trunk and verify.
> Using initial attribute of state ends with IllegalArgumentException
> -------------------------------------------------------------------
>
> Key: SCXML-86
> URL: https://issues.apache.org/jira/browse/SCXML-86
> Project: Commons SCXML
> Issue Type: Bug
> Affects Versions: 0.8
> Reporter: Ales Dolecek
> Fix For: 0.9
>
>
> Parsing following state fails:
> <state id="parent" initial="child">
> <state id="child"/>
> </state>
> using <initial> works:
> <state id="parent>
> <initial>
> <transition target="child"/>
> </initial>
> <state id="child"/>
> </state>
> I belive it is because when digester hits the parent state it does not know how to resolve IDREF to child, because it was not parsed yet. SCXML solve this by invoking #setInitialstate(String) on Rule#begin() and #setInitialTarget(TransitionTarget) later.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SCXML-86) Using initial attribute of state ends
with IllegalArgumentException
Posted by "Rahul Akolkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SCXML-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rahul Akolkar updated SCXML-86:
-------------------------------
Fix Version/s: 0.9
Remaining Estimate: (was: 2h)
Original Estimate: (was: 2h)
Setting fix version to next release (v0.9). Will take a look when I get a chance.
> Using initial attribute of state ends with IllegalArgumentException
> -------------------------------------------------------------------
>
> Key: SCXML-86
> URL: https://issues.apache.org/jira/browse/SCXML-86
> Project: Commons SCXML
> Issue Type: Bug
> Affects Versions: 0.8
> Reporter: Ales Dolecek
> Fix For: 0.9
>
>
> Parsing following state fails:
> <state id="parent" initial="child">
> <state id="child"/>
> </state>
> using <initial> works:
> <state id="parent>
> <initial>
> <transition target="child"/>
> </initial>
> <state id="child"/>
> </state>
> I belive it is because when digester hits the parent state it does not know how to resolve IDREF to child, because it was not parsed yet. SCXML solve this by invoking #setInitialstate(String) on Rule#begin() and #setInitialTarget(TransitionTarget) later.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.