[jira] Created: (MODELLO-168) Recursive descent fails for tree-like data model

View: New views
5 Messages — Rating Filter:   Alert me  

[jira] Created: (MODELLO-168) Recursive descent fails for tree-like data model

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Recursive descent fails for tree-like data model
------------------------------------------------

                 Key: MODELLO-168
                 URL: http://jira.codehaus.org/browse/MODELLO-168
             Project: Modello
          Issue Type: Bug
          Components: modello-plugin-java
    Affects Versions: 1.0-alpha-22
            Reporter: Benjamin Bentmann
         Attachments: modello-root-recursion.zip

For a data model whose root class allows recursion into itself like
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<model xsd.namespace="http://maven.apache.org/TEST/4.0.0" xsd.target-namespace="http://maven.apache.org/TEST/4.0.0">
  <id>test</id>
  <name>Test</name>
  <defaults>
    <default>
      <key>package</key>
      <value>org.codehaus.modello.test</value>
    </default>
  </defaults>
  <classes>
    <class rootElement="true">
      <name>Node</name>
      <version>4.0.0</version>
      <fields>
        <field>
          <name>value</name>
          <version>4.0.0</version>
          <type>String</type>
          <defaultValue>default</defaultValue>
        </field>
        <field>
          <name>child</name>
          <version>4.0.0</version>
          <required>false</required>
          <association>
            <type>Node</type>
          </association>
        </field>
      </fields>
    </class>
  </classes>
</model>
{code}
and some input data like
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<node>
  <value>1</value>
  <child>
    <value>2</value>
    <child>
      <value>3</value>
      <child>
        <value>4</value>
      </child>
    </child>
  </child>
</node>
{code}
the parser fails with a bogus error message about duplicate elements (see the demo project).

Tested also with a beta-1-SNAPSHOT from trunk.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (MODELLO-168) Recursive descent fails for tree-like data model

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MODELLO-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MODELLO-168:
--------------------------------------

    Component/s:     (was: modello-plugin-java)
                 modello-plugin-xpp3

> Recursive descent fails for tree-like data model
> ------------------------------------------------
>
>                 Key: MODELLO-168
>                 URL: http://jira.codehaus.org/browse/MODELLO-168
>             Project: Modello
>          Issue Type: Bug
>          Components: modello-plugin-xpp3
>    Affects Versions: 1.0-alpha-22
>            Reporter: Benjamin Bentmann
>         Attachments: modello-root-recursion.zip
>
>
> For a data model whose root class allows recursion into itself like
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <model xsd.namespace="http://maven.apache.org/TEST/4.0.0" xsd.target-namespace="http://maven.apache.org/TEST/4.0.0">
>   <id>test</id>
>   <name>Test</name>
>   <defaults>
>     <default>
>       <key>package</key>
>       <value>org.codehaus.modello.test</value>
>     </default>
>   </defaults>
>   <classes>
>     <class rootElement="true">
>       <name>Node</name>
>       <version>4.0.0</version>
>       <fields>
>         <field>
>           <name>value</name>
>           <version>4.0.0</version>
>           <type>String</type>
>           <defaultValue>default</defaultValue>
>         </field>
>         <field>
>           <name>child</name>
>           <version>4.0.0</version>
>           <required>false</required>
>           <association>
>             <type>Node</type>
>           </association>
>         </field>
>       </fields>
>     </class>
>   </classes>
> </model>
> {code}
> and some input data like
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <node>
>   <value>1</value>
>   <child>
>     <value>2</value>
>     <child>
>       <value>3</value>
>       <child>
>         <value>4</value>
>       </child>
>     </child>
>   </child>
> </node>
> {code}
> the parser fails with a bogus error message about duplicate elements (see the demo project).
> Tested also with a beta-1-SNAPSHOT from trunk.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (MODELLO-168) Recursive descent fails for tree-like data model

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MODELLO-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MODELLO-168:
----------------------------------

    Fix Version/s: 1.0

> Recursive descent fails for tree-like data model
> ------------------------------------------------
>
>                 Key: MODELLO-168
>                 URL: http://jira.codehaus.org/browse/MODELLO-168
>             Project: Modello
>          Issue Type: Bug
>          Components: modello-plugin-xpp3
>    Affects Versions: 1.0-alpha-22
>            Reporter: Benjamin Bentmann
>             Fix For: 1.0
>
>         Attachments: modello-root-recursion.zip
>
>
> For a data model whose root class allows recursion into itself like
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <model xsd.namespace="http://maven.apache.org/TEST/4.0.0" xsd.target-namespace="http://maven.apache.org/TEST/4.0.0">
>   <id>test</id>
>   <name>Test</name>
>   <defaults>
>     <default>
>       <key>package</key>
>       <value>org.codehaus.modello.test</value>
>     </default>
>   </defaults>
>   <classes>
>     <class rootElement="true">
>       <name>Node</name>
>       <version>4.0.0</version>
>       <fields>
>         <field>
>           <name>value</name>
>           <version>4.0.0</version>
>           <type>String</type>
>           <defaultValue>default</defaultValue>
>         </field>
>         <field>
>           <name>child</name>
>           <version>4.0.0</version>
>           <required>false</required>
>           <association>
>             <type>Node</type>
>           </association>
>         </field>
>       </fields>
>     </class>
>   </classes>
> </model>
> {code}
> and some input data like
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <node>
>   <value>1</value>
>   <child>
>     <value>2</value>
>     <child>
>       <value>3</value>
>       <child>
>         <value>4</value>
>       </child>
>     </child>
>   </child>
> </node>
> {code}
> the parser fails with a bogus error message about duplicate elements (see the demo project).
> Tested also with a beta-1-SNAPSHOT from trunk.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (MODELLO-168) Recursive descent fails for tree-like data model

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MODELLO-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MODELLO-168:
----------------------------------

    Fix Version/s:     (was: 1.0.1)
                   1.1

> Recursive descent fails for tree-like data model
> ------------------------------------------------
>
>                 Key: MODELLO-168
>                 URL: http://jira.codehaus.org/browse/MODELLO-168
>             Project: Modello
>          Issue Type: Bug
>          Components: modello-plugin-xpp3
>    Affects Versions: 1.0-alpha-22
>            Reporter: Benjamin Bentmann
>             Fix For: 1.1
>
>         Attachments: modello-root-recursion.zip
>
>
> For a data model whose root class allows recursion into itself like
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <model xsd.namespace="http://maven.apache.org/TEST/4.0.0" xsd.target-namespace="http://maven.apache.org/TEST/4.0.0">
>   <id>test</id>
>   <name>Test</name>
>   <defaults>
>     <default>
>       <key>package</key>
>       <value>org.codehaus.modello.test</value>
>     </default>
>   </defaults>
>   <classes>
>     <class rootElement="true">
>       <name>Node</name>
>       <version>4.0.0</version>
>       <fields>
>         <field>
>           <name>value</name>
>           <version>4.0.0</version>
>           <type>String</type>
>           <defaultValue>default</defaultValue>
>         </field>
>         <field>
>           <name>child</name>
>           <version>4.0.0</version>
>           <required>false</required>
>           <association>
>             <type>Node</type>
>           </association>
>         </field>
>       </fields>
>     </class>
>   </classes>
> </model>
> {code}
> and some input data like
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <node>
>   <value>1</value>
>   <child>
>     <value>2</value>
>     <child>
>       <value>3</value>
>       <child>
>         <value>4</value>
>       </child>
>     </child>
>   </child>
> </node>
> {code}
> the parser fails with a bogus error message about duplicate elements (see the demo project).
> Tested also with a beta-1-SNAPSHOT from trunk.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (MODELLO-168) Recursive descent fails for tree-like data model

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MODELLO-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MODELLO-168:
----------------------------------

    Fix Version/s:     (was: 1.1)
                   1.2

> Recursive descent fails for tree-like data model
> ------------------------------------------------
>
>                 Key: MODELLO-168
>                 URL: http://jira.codehaus.org/browse/MODELLO-168
>             Project: Modello
>          Issue Type: Bug
>          Components: modello-plugin-xpp3
>    Affects Versions: 1.0-alpha-22
>            Reporter: Benjamin Bentmann
>             Fix For: 1.2
>
>         Attachments: modello-root-recursion.zip
>
>
> For a data model whose root class allows recursion into itself like
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <model xsd.namespace="http://maven.apache.org/TEST/4.0.0" xsd.target-namespace="http://maven.apache.org/TEST/4.0.0">
>   <id>test</id>
>   <name>Test</name>
>   <defaults>
>     <default>
>       <key>package</key>
>       <value>org.codehaus.modello.test</value>
>     </default>
>   </defaults>
>   <classes>
>     <class rootElement="true">
>       <name>Node</name>
>       <version>4.0.0</version>
>       <fields>
>         <field>
>           <name>value</name>
>           <version>4.0.0</version>
>           <type>String</type>
>           <defaultValue>default</defaultValue>
>         </field>
>         <field>
>           <name>child</name>
>           <version>4.0.0</version>
>           <required>false</required>
>           <association>
>             <type>Node</type>
>           </association>
>         </field>
>       </fields>
>     </class>
>   </classes>
> </model>
> {code}
> and some input data like
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <node>
>   <value>1</value>
>   <child>
>     <value>2</value>
>     <child>
>       <value>3</value>
>       <child>
>         <value>4</value>
>       </child>
>     </child>
>   </child>
> </node>
> {code}
> the parser fails with a bogus error message about duplicate elements (see the demo project).
> Tested also with a beta-1-SNAPSHOT from trunk.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email