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.

Reply via email to