|
From: Andy D. <an...@ma...> - 2004-06-02 16:17:18
|
I think I'm seeing a bug in Spring, but thought I'd bounce it off others
first. I have a class with multiple constructors, two of which are defined
as follows:
public DefaultType(Type superType, String qualifiedName)
and:
public DefaultType(Type superType, String uri, String name)
I use the following XML to configure:
<bean
id="personType"
class="com.marathon.util.sdo.DefaultType">
<constructor-arg><ref bean="entityType"/></constructor-arg>
<constructor-arg><value>m:Person</value></constructor-arg>
<property name="typeProperties">
<list>
...
</list>
</property>
</bean>
Spring will call the second constructor instead of the first, passing in
"m:Person" to both String parameters, equivalent to this:
new DefaultType(entityType, "m:Person", "m:Person")
Am I doing something wrong, or is this a bug? This is with Spring 1.0.1
(release)
|