mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 14:09:25 +00:00
fixing error handling in 'is' operator
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@74 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+7
@@ -56,4 +56,11 @@ public class ParserErrorMessagesTests extends ExpressionTestCase {
|
||||
parseAndCheckError("1;2;3", SpelMessages.PARSE_PROBLEM, 1, "mismatched input ';' expecting EOF"); // POOR
|
||||
evaluate("(1;2;3)", 3, Integer.class);
|
||||
}
|
||||
|
||||
public void testBrokenExpression07() {
|
||||
// T() can only take an identifier (possibly qualified), not a literal
|
||||
// message ought to say identifier rather than ID
|
||||
parseAndCheckError("null is T('a')", SpelMessages.PARSE_PROBLEM, 10, "mismatched input ''a'' expecting ID"); // POOR
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user