Skip to content
This repository was archived by the owner on Aug 17, 2018. It is now read-only.

Commit 1a22123

Browse files
author
Kin Man Chung
committed
svn path=/trunk/; revision=1462
1 parent bda45f0 commit 1a22123

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

impl/src/main/java/org/apache/jasper/compiler/JspUtil.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -581,40 +581,41 @@ public static String interpreterCall(boolean isTagFile,
581581
* or, if it's a primitive, the name of its correspondent boxed
582582
* type.
583583
*/
584-
String targetType = expectedType.getName();
584+
String returnType = expectedType.getName();
585+
String targetType = returnType;
585586
String primitiveConverterMethod = null;
586587
if (expectedType.isPrimitive()) {
587588
if (expectedType.equals(Boolean.TYPE)) {
588-
targetType = Boolean.class.getName();
589+
returnType = Boolean.class.getName();
589590
primitiveConverterMethod = "booleanValue";
590591
} else if (expectedType.equals(Byte.TYPE)) {
591-
targetType = Byte.class.getName();
592+
returnType = Byte.class.getName();
592593
primitiveConverterMethod = "byteValue";
593594
} else if (expectedType.equals(Character.TYPE)) {
594-
targetType = Character.class.getName();
595+
returnType = Character.class.getName();
595596
primitiveConverterMethod = "charValue";
596597
} else if (expectedType.equals(Short.TYPE)) {
597-
targetType = Short.class.getName();
598+
returnType = Short.class.getName();
598599
primitiveConverterMethod = "shortValue";
599600
} else if (expectedType.equals(Integer.TYPE)) {
600-
targetType = Integer.class.getName();
601+
returnType = Integer.class.getName();
601602
primitiveConverterMethod = "intValue";
602603
} else if (expectedType.equals(Long.TYPE)) {
603-
targetType = Long.class.getName();
604+
returnType = Long.class.getName();
604605
primitiveConverterMethod = "longValue";
605606
} else if (expectedType.equals(Float.TYPE)) {
606-
targetType = Float.class.getName();
607+
returnType = Float.class.getName();
607608
primitiveConverterMethod = "floatValue";
608609
} else if (expectedType.equals(Double.TYPE)) {
609-
targetType = Double.class.getName();
610+
returnType = Double.class.getName();
610611
primitiveConverterMethod = "doubleValue";
611612
}
612613
}
613614

614615
targetType = toJavaSourceType(targetType);
615616

616617
StringBuilder call = new StringBuilder(
617-
"(" + targetType + ") "
618+
"(" + returnType + ") "
618619
+ "org.apache.jasper.runtime.PageContextImpl.evaluateExpression"
619620
+ "(" + Generator.quote(expression) + ", "
620621
+ targetType + ".class, "

0 commit comments

Comments
 (0)