geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr Bzdyl (JIRA)" <j...@apache.org>
Subject [jira] Created: (XBEAN-121) Constructor injection doesn't work with constructor argument of type array
Date Mon, 09 Feb 2009 14:39:00 GMT
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


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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message