tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1401808 - /tomcat/trunk/java/org/apache/jasper/tagplugins/jstl/core/Out.java
Date Wed, 24 Oct 2012 18:19:17 GMT
Author: markt
Date: Wed Oct 24 18:19:16 2012
New Revision: 1401808

URL: http://svn.apache.org/viewvc?rev=1401808&view=rev
Log:
Remainder of fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=54011
Value is coerced to boolean in ctx.generateAttribute() so no need for additional conversion
Based on a patch by Sheldon Shao

Modified:
    tomcat/trunk/java/org/apache/jasper/tagplugins/jstl/core/Out.java

Modified: tomcat/trunk/java/org/apache/jasper/tagplugins/jstl/core/Out.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/tagplugins/jstl/core/Out.java?rev=1401808&r1=1401807&r2=1401808&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/tagplugins/jstl/core/Out.java (original)
+++ tomcat/trunk/java/org/apache/jasper/tagplugins/jstl/core/Out.java Wed Oct 24 18:19:16
2012
@@ -66,9 +66,9 @@ public final class Out implements TagPlu
         //if the escapeXml is specified, assign the value to it;
         ctxt.generateJavaSource("boolean " + strEscapeXmlName + " = true;");
         if(hasEscapeXml){
-            ctxt.generateJavaSource(strEscapeXmlName + " = Boolean.parseBoolean((");
+            ctxt.generateJavaSource(strEscapeXmlName + " = ");
             ctxt.generateAttribute("escapeXml");
-            ctxt.generateJavaSource(").toString());");
+            ctxt.generateJavaSource(";");
         }
 
         //main part.



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


Mime
View raw message