geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (XBEAN-121) Constructor injection doesn't work with constructor argument of type array
Date Wed, 03 Oct 2012 09:20:07 GMT

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

Guillaume Nodet closed XBEAN-121.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.12
         Assignee: Guillaume Nodet

Adding         src/test/java/org/apache/xbean/spring/context/Recipe2UsingXBeanTest.java
Adding         src/test/java/org/apache/xbean/spring/example/RecipeService2.java
Adding         src/test/resources/org/apache/xbean/spring/context/recipe2-xbean.xml
Transmitting file data ...
Committed revision 1393363.

                
> Constructor injection doesn't work with constructor argument of type array
> --------------------------------------------------------------------------
>
>                 Key: XBEAN-121
>                 URL: https://issues.apache.org/jira/browse/XBEAN-121
>             Project: XBean
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Piotr Bzdyl
>            Assignee: Guillaume Nodet
>             Fix For: 3.12
>
>
> A sample class:
> package test;
> public class SomeBean {
>   private final String[] arguments;
>   public SomeBean(String[] arguments) {
>     this.arguments = arguments;
>   }
> }
> And mapping configuration:
> something = test.SomeBean
> test.SomeBean(java.lang.String[]).parameterNames = arguments
> Using:
> <myNs:something arguments="#..."/>
> causes:
> Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [test.SomeBean]: No default constructor found; nested exception is java.lang.NoSuchMethodException:
test.SomeBean.<init>()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message