Skip to content

CustomEditorConfigurer functionality regression in 3.0 [SPR-5971] #10639

@spring-projects-issues

Description

@spring-projects-issues

Matthew Sgarlata opened SPR-5971 and commented

The CustomEditorConfigurer functions differently in Spring 3 than in earlier versions of Spring. The change may have been intentional or may have been accidental. Either way the reference document no longer matches the actual behavior of the class, so either the class needs to change or the reference document needs to change.

Here is the section of the reference document:

http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/ch06s04.html#beans-beans-conversion-customeditor-registration

Here is the advertised usage pattern (and how it used to work before Spring 3):

<bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
  <property name="customEditors">
    <map>
      <entry key="example.ExoticType">
        <bean class="example.ExoticTypeEditor">
          <property name="format" value="upperCase"/>
        </bean>
      </entry>
    </map>
  </property>
</bean>

Here is how it works in Spring 3:

<bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
  <property name="customEditors">
    <map>
      <entry key="example.ExoticType" value="example.ExoticTypeEditor"/>
    </map>
  </property>
</bean>

Related bugs: 5773, 5860


Affects: 3.0 M3

Issue Links:

Referenced from: commits 6ffb750

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions