Skip to content

Commit

Permalink
Support case-insensitive null literals in SpEL
Browse files Browse the repository at this point in the history
Prior to this commit null literals in SpEL expressions had to be
specified as "null" (i.e., all lowercase).

With this commit null literals in SpEL expressions are interpreted in a
case-insensitive manner, analogous to the current support for boolean
literals.

Issue: SPR-9613
  • Loading branch information
aclement authored and sbrannen committed Aug 3, 2012
1 parent 529e629 commit a7418f4
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ private boolean maybeEatTypeReference() {
private boolean maybeEatNullReference() {
if (peekToken(TokenKind.IDENTIFIER)) {
Token nullToken = peekToken();
if (!nullToken.stringValue().equals("null")) {
if (!nullToken.stringValue().toLowerCase().equals("null")) {
return false;
}
nextToken();
Expand Down
Loading

0 comments on commit a7418f4

Please sign in to comment.