You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2010/01/31 01:56:48 UTC
svn commit: r904943 - /tomcat/trunk/test/org/apache/el/TestELEvaluation.java
Author: markt
Date: Sun Jan 31 00:56:47 2010
New Revision: 904943
URL: http://svn.apache.org/viewvc?rev=904943&view=rev
Log:
Test mixing ${...} and #{...} in the same expression
Modified:
tomcat/trunk/test/org/apache/el/TestELEvaluation.java
Modified: tomcat/trunk/test/org/apache/el/TestELEvaluation.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/el/TestELEvaluation.java?rev=904943&r1=904942&r2=904943&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/el/TestELEvaluation.java (original)
+++ tomcat/trunk/test/org/apache/el/TestELEvaluation.java Sun Jan 31 00:56:47 2010
@@ -171,6 +171,22 @@
assertTrue(null == null);
}
+ /**
+ * Test mixing ${...} and #{...} in the same expression.
+ */
+ public void testMixedTypes() {
+ // Mixing types should throw an error
+ Exception e = null;
+ try {
+ evaluateExpression("${1+1}#{1+1}");
+ } catch (ELException el) {
+ e = el;
+ }
+ assertNotNull(e);
+ }
+
+
+
// ************************************************************************
private String evaluateExpression(String expression) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org