Skip to content

Spring ConversionService does not work with SpEL [SPR-6563] #11229

@spring-projects-issues

Description

@spring-projects-issues

Liu, Yinwei David opened SPR-6563 and commented

We encounter two issues when we configured conversionService in Spring config file. Please see attached test case:
Java:
public class TestBean{
private List<String> addresses;
...
}

Config:
<bean id="conversionService" class="org.springframework.context.support.ConversionServiceFactoryBean" />

<bean class="TestBean">
<property name="addresses">
<list>
<value>#{'test-' + strValue + '-end'}</value>
<value>#{'test-' + strValue}</value>
<value>#{'test-' + numValue+ '-end'}</value>
<value>#{'test-' + numValue}</value>
</list>
</property>
</bean>
<bean id="numValue" class="java.lang.Integer" >
<constructor-arg value="111"/>
</bean>
<bean id="strValue" class="java.lang.String" >
<constructor-arg value="222"/>
</bean>


Affects: 3.0 RC3

Referenced from: commits 1c33206

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