You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2014/04/28 13:27:26 UTC

svn commit: r1590604 - /tomcat/trunk/java/org/apache/jasper/compiler/Validator.java

Author: kkolinko
Date: Mon Apr 28 11:27:25 2014
New Revision: 1590604

URL: http://svn.apache.org/r1590604
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56334
Reviewing r1587887:
s/ attrs.getValue(i) / attributeValue / in the messages as well,
so that the actual expression text that is processed is printed in the message.

Modified:
    tomcat/trunk/java/org/apache/jasper/compiler/Validator.java

Modified: tomcat/trunk/java/org/apache/jasper/compiler/Validator.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/Validator.java?rev=1590604&r1=1590603&r2=1590604&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/compiler/Validator.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/Validator.java Mon Apr 28 11:27:25 2014
@@ -1196,7 +1196,7 @@ class Validator {
                                         } catch (Exception e) {
                                             err.jspError
                                                 (n, "jsp.error.coerce_to_type",
-                                                 tldAttr.getName(), expectedType, attrs.getValue(i));
+                                                 tldAttr.getName(), expectedType, attributeValue);
                                         }
                                     }
                                 }
@@ -1233,7 +1233,7 @@ class Validator {
                                     } catch (ELException e) {
                                         this.err.jspError(n.getStart(),
                                                 "jsp.error.invalid.expression",
-                                                attrs.getValue(i), e.toString());
+                                                attributeValue, e.toString());
                                     }
                                 } else {
                                     // Runtime expression



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org