public class IntArrayPropertyTest { public void setInts(int[] ints) { System.out.println("received ints: " + Arrays.toString(ints)); } }
<bean class="foo.bar.IntArrayPropertyTest" id="test"> <property name="ints"> <list> <value>1</value> <value>2</value> </list> </property> </bean>
Warning given at <list> start element: "Property of 'int[]' type cannot be injected by 'java.util.List'"
Forum thread: http://intellij.net/forums/thread.jspa?threadID=266468&tstart=0