forked from wspringer/spring-me
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inferred type of array properties.
The getValue() method on the QDox Type class returns the element type as a string for array types. The code was using getValue() without checking whether the type was an array type. The toString() method returns the type name with array brackets for each array dimension, which provides the type in the required format.
- Loading branch information
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
http://www.springframework.org/schema/beans/spring-beans.xsd"> | ||
|
||
|
||
<bean class="me.springframework.di.spring.SinkTypeTest$ArrayHolder" | ||
name="string-test"> | ||
<property name="strings"> | ||
<list> | ||
<value type="java.lang.String">Value 1</value> | ||
<value type="java.lang.String">Value 2</value> | ||
</list> | ||
</property> | ||
</bean> | ||
</beans> |