浏览代码

jfinal 3.4

James 7 年之前
父节点
当前提交
cfd23663f1

+ 1 - 1
src/main/java/com/jfinal/template/ext/directive/RenderDirective.java

@@ -70,7 +70,7 @@ public class RenderDirective extends Directive {
 		if (len > 1) {
 		if (len > 1) {
 			for (int i = 1; i < len; i++) {
 			for (int i = 1; i < len; i++) {
 				if (!(exprList.getExpr(i) instanceof Assign)) {
 				if (!(exprList.getExpr(i) instanceof Assign)) {
-					throw new ParseException("The " + i + "th parameter of #render directive must be an assignment expression", location);
+					throw new ParseException("The " + (i + 1) + "th parameter of #render directive must be an assignment expression", location);
 				}
 				}
 			}
 			}
 		}
 		}

+ 1 - 1
src/main/java/com/jfinal/template/stat/ast/Include.java

@@ -75,7 +75,7 @@ public class Include extends Stat {
 		if (len > 1) {
 		if (len > 1) {
 			for (int i = 1; i < len; i++) {
 			for (int i = 1; i < len; i++) {
 				if (!(exprList.getExpr(i) instanceof Assign)) {
 				if (!(exprList.getExpr(i) instanceof Assign)) {
-					throw new ParseException("The " + i + "th parameter of #include directive must be an assignment expression", location);
+					throw new ParseException("The " + (i + 1) + "th parameter of #include directive must be an assignment expression", location);
 				}
 				}
 			}
 			}
 		}
 		}