Ensure cast correctly included for OpPlus compilation

When the plus operator is used between strings in a SpEL
expression and that expression is compiled, it is
important to include a cast if computation of any of
the operands isn't obviously leaving strings on the
stack. Likewise if the stack contents are known to
be strings, a cast should not be included.

Issue: SPR-12426
(cherry picked from commit 58756b0)
This commit is contained in:
Andy Clement
2015-11-24 22:37:53 +01:00
committed by Juergen Hoeller
parent 55494362ef
commit e410129aaf
2 changed files with 626 additions and 586 deletions