[ 
https://issues.apache.org/jira/browse/DIGESTER-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simone Tripodi reopened DIGESTER-153:
-------------------------------------


Unfortunately the LazyLoader still fails under certain circumstances: imagine 
an XML snippet like:

{code}
<toplevel>
  <bean double="9.99">
    <boolean>true</boolean>
    <float>5.5</float>
  </bean>
</toplevel>
{code}

and the mapped bean is of the type

{code}
class MyBean
{

  private float floatProperty;

  public MyBean( double doubleProperty, boolean booleanProperty )
    ...
}
{code}

what happens is that not all constructor parameters are correctly collected 
because the object is created in the {{begin()}} method when {{toplevel/bean}} 
matches.

I don't know at that oint if it is possible creating a Stub that simply 
collects methods that can be called when invoking the {{end()}} method when 
{{toplevel/bean}} element is closed...
                
> Add Constructor support to ObjectCreateRule
> -------------------------------------------
>
>                 Key: DIGESTER-153
>                 URL: https://issues.apache.org/jira/browse/DIGESTER-153
>             Project: Commons Digester
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Simone Tripodi
>            Assignee: Simone Tripodi
>             Fix For: 3.2
>
>
> As shown in the past, the stack method of Digester has some [limitations 
> |http://markmail.org/message/wick27gw6n5weqk2] for fully support the 
> Constructors - it basically cannot use elements in the body as constructor 
> arguments - but it could support arguments extracted from attributes. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to