SPR-5673: more intelligence in TemplateAwareExpressionParser. Supports prefix/suffix escaping and nesting of prefixes/suffixes

This commit is contained in:
Andy Clement
2009-04-14 21:26:56 +00:00
parent 298a5c4a8b
commit 338a7ee2de
5 changed files with 76 additions and 21 deletions

View File

@@ -123,7 +123,7 @@ public class Selection extends SpelNodeImpl {
}
}
if ((variant == FIRST || variant == LAST) && result.size() == 0) {
return null;
return TypedValue.NULL_TYPED_VALUE;
}
if (variant == LAST) {
return new TypedValue(result.get(result.size() - 1),TypeDescriptor.valueOf(op.getTypeDescriptor().getElementType()));