Browse Source

jfinal 3.4

James 7 years ago
parent
commit
e7ebc3f3a4

+ 2 - 2
src/main/java/com/jfinal/template/expr/ast/Field.java

@@ -113,9 +113,9 @@ public class Field extends Expr {
 		
 		if (expr instanceof Id) {
 			String id = ((Id)expr).getId();
-			throw new TemplateException("Field not found: \"" + id + "." + fieldName + "\" and getter method not found: \"" + id + "." + getterName + "()\"", location);
+			throw new TemplateException("public field not found: \"" + id + "." + fieldName + "\" and public getter method not found: \"" + id + "." + getterName + "()\"", location);
 		}
-		throw new TemplateException("Field not found: \"" + fieldName + "\" and getter method not found: \"" + getterName + "()\"", location);
+		throw new TemplateException("public field not found: \"" + fieldName + "\" and public getter method not found: \"" + getterName + "()\"", location);
 	}
 	
 	private Long buildFieldKey(Class<?> targetClass) {

+ 1 - 1
src/main/java/com/jfinal/template/expr/ast/Method.java

@@ -75,7 +75,7 @@ public class Method extends Expr {
 			if (scope.getCtrl().isNullSafe()) {
 				return null;
 			}
-			throw new TemplateException(buildMethodNotFoundSignature("Method not found: " + target.getClass().getName() + ".", methodName, argValues), location);
+			throw new TemplateException(buildMethodNotFoundSignature("public method not found: " + target.getClass().getName() + ".", methodName, argValues), location);
 		}
 		
 		try {