Skip to content

OpDivide wrongly wraps result of division in TypedValue [SPR-9869] #14502

@spring-projects-issues

Description

@spring-projects-issues

Tomasz Wysocki opened SPR-9869 and commented

Fragment of code from OpDivide.java

	Object result = state.operate(Operation.DIVIDE, operandOne, operandTwo);
return new TypedValue(result);

wrongly wraps result of division in TypedValue.
Corresponding in OpMultiply.java is correct.

return state.operate(Operation.MULTIPLY, operandOne, operandTwo);

Fix is trivial.


Affects: 3.1.2

Referenced from: commits ad81ec9, 138fa8a

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