Skip to content

SpEL Compiler produces incompatible code with method generic returns [SPR-12040] #16656

@spring-projects-issues

Description

@spring-projects-issues

Artem Bilan opened SPR-12040 and commented

The simple test-case to reproduce:

@Test
public void testSpelCompiler () {
   SpelParserConfiguration configuration =
         new SpelParserConfiguration(SpelCompilerMode.IMMEDIATE, this.getClass().getClassLoader());

   Expression expression = new SpelExpressionParser(configuration)
         .parseExpression("payload / 2");

   expression.getValue(new GenericMessage<Integer>(4));
   expression.getValue(new GenericMessage<Integer>(6));

}

Affects: 4.1 RC1

Referenced from: commits 59080ff

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