commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (Reopened) (JIRA)" <>
Subject [jira] [Reopened] (DIGESTER-153) Add Constructor support to ObjectCreateRule
Date Sat, 03 Dec 2011 19:12:39 GMT


Simone Tripodi reopened DIGESTER-153:

sorry for bugging again on this, unfortunately there still is a case where the lazy loader
fails ;(

When classes have not the default empty constructor, CGLIB complains

java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were
	at net.sf.cglib.proxy.Enhancer.emitConstructors(
	at net.sf.cglib.proxy.Enhancer.generateClass(
	at net.sf.cglib.core.DefaultGeneratorStrategy.generate(
	at net.sf.cglib.core.AbstractClassGenerator.create(
	at net.sf.cglib.proxy.Enhancer.createHelper(
	at net.sf.cglib.proxy.Enhancer.create(
	at org.apache.commons.digester3.ObjectCreateRule.createLazyProxy(
	at org.apache.commons.digester3.ObjectCreateRule.begin(
	at org.apache.commons.digester3.Digester.startElement(

you can test it simply by removing the empty constructor in {{org.apache.commons.digester3.TestBean}}

Thanks a lot for your help in advance!
> Add Constructor support to ObjectCreateRule
> -------------------------------------------
>                 Key: DIGESTER-153
>                 URL:
>             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 |]
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:!default.jspa
For more information on JIRA, see:


View raw message