title: Spring 3.2.4 can't convert String to Enum in <util:map.../> although 'key-type' is specified
body: <p>I'm trying to define a map bean with Spring 3.2.4 with an Enum as the key type, this way:</p>
  
  <pre><code>&lt;util:map id="myMapping" key-type="com.acme.MyEnum"&gt;
      &lt;entry key="ENUM1" value="value1" /&gt;
      &lt;entry key="ENUM2" value="value2" /&gt;
  &lt;/util:map&gt;
  </code></pre>
  
  <p>The MyEnum class is a trivial class:</p>
  
  <pre><code>public enum MyEnum
  {
      ENUM1,
      ENUM2
  }
  </code></pre>
  
  <p>When creating the application context, Spring throws this exception:</p>
  
  <pre><code>org.springframework.beans.factory.BeanCreationException:
  
    Error creating bean with name 'myMapping':
  
      Error converting typed String value for bean property 'sourceMap';
      nested exception is org.springframework.beans.ConversionNotSupportedException:
  
      Failed to convert value of type 'java.lang.String' to required type
      'com.acme.MyEnum'; nested exception is java.lang.IllegalStateException:
  
        Cannot convert value of type [java.lang.String] to required type 
        [com.acme.MyEnum]: no matching editors or conversion strategy found
  </code></pre>
  
  <p>(<em>formatted for better readbility</em>)</p>
  
  <p>I expected Spring to convert the String "ENUM1" to "MyEmum.ENUM1", because of the given key type</p>
  
  <pre><code>key-type="com.acme.MyEnum"
  </code></pre>
  
  <p>in the mapping bean declaration.</p>
  
  <p>I know how to solve this by doing an alternate bean definition, using <code>&lt;entry&gt;</code>, using the full qualified class name of the enum etc... But I would like to build the defintion as described for easy readability.</p>
  
  <p>Is this a known bug or a lack of understanding on my side?</p>
  
  <p>Thanks a lot for your help!</p>