Skip to content

SpEL regression with ArrayList to int array conversion [SPR-7519] #12177

@spring-projects-issues

Description

@spring-projects-issues

Chris Beams opened SPR-7519 and commented

I just discovered what appears to be a regression in SpEL support when attempting to upgrade Spring Integration from depending on Spring 3.0.3 to Spring 3.0.4.

See the stack trace here: http://build.springframework.org/browse/INT-TRUNK-3075/test/case/63242567

This can be reproduced with the following steps:

  1. svn co https://src.springframework.org/svn/spring-integration/trunk@4079
  2. mvn test
  3. notice build fails with a single 'test in error': shouldFindSimpleAggregatorMethodWithArray

I suspect the regression occurred in one of the following two commits that have happened since 3.0.3 was released:

  1. https://fisheye.springsource.org/changelog/spring-framework/?cs=3473 (Andy, "support for expression inline lists and array construction (SpEL: support for inline list expressions [SPR-7335] #11994)")
  2. https://fisheye.springsource.org/changelog/spring-framework/?cs=3542 (Juergen, " SpEL passes full collection type context to ConversionService (SpEL evaluator cannot convert method parameters even if the TypeConverter can [SPR-7410] #12068)"

Perhaps specifically in Andy's latest changes to org.springframework.expression/src/main/java/org/springframework/expression/spel/SpelMessage.java?


Affects: 3.0.4, 3.0.5

Issue Links:

Referenced from: commits c33df59

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions