title: SpringMVC: Could not instantiate property type [java.lang.Double] to auto-grow nested property path
body: <p>We have an Input field that maps to </p>
  
  <pre><code>MyObject
   |--List&lt;Double&gt; tuition;
  </code></pre>
  
  <p>Upon binding the JSP field specific indexed elements of the list, e.g. </p>
  
  <pre><code>path="myobject.tuition[0]"
  path="myobject.tuition[1]"
  </code></pre>
  
  <p>we get this error:</p>
  
  <pre><code>Could not instantiate property type [java.lang.Double] to auto-grow nested property path: java.lang.InstantiationException: java.lang.Double
  </code></pre>
  
  <p>But I thought all lists were auto-growable in SpringMVC? Can someone clarify?</p>
  
  <p><strong>UPDATE</strong> The Java Double class doesn't have a no-arg constructor, which is why it's failing. Very surprised it's not a more widely-known or discussed issue. How do you bind to Lists of classes like Double or Integer that don't support default no-arg constructors? Our only solution right now is to bind to a <code>List&lt;String&gt;</code> (Strings support no-arg construction) and then copy to a <code>List&lt;Double&gt;</code>, which is weird.</p>