History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-15617
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Sergey Vasiliev
Reporter: Taras Tielkes
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Property of 'int[]' type cannot be injected by 'java.util.List'

Created: 26 Mar 07 19:25   Updated: 28 Mar 07 10:43
Component/s: J2EE.Spring
Fix Version/s: Selena 6791

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,776
Fixed in build: 6,786


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order:
Dmitry Avdeev - 26 Mar 07 19:57
please provide support for primitive arrays