From: kkolinko Date: Sun, 19 Jul 2009 02:52:32 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47413 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=61dee9d142aa1730f98cd735ca336496a42b3b0e;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47413 First part of a composite expression "${a}${b}" was not coerced to String git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@795466 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index b6539b161..504a77226 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -862,6 +862,10 @@ class Generator { // Composite expression - must coerce to String type = String.class; } + if (i+1 < size) { + // Composite expression - must coerce to String + type = String.class; + } output.append( JspUtil.interpreterCall(isTag, tx.substring(mark, i+1), type,