enjoy 3.7 release ^_^
This commit is contained in:
parent
3cc94a5b32
commit
84573be584
@ -133,6 +133,10 @@ public class FieldKit {
|
||||
|
||||
getters = ret.toArray(new FieldGetter[ret.size()]);
|
||||
}
|
||||
|
||||
public static void clearCache() {
|
||||
fieldGetterCache.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -115,6 +115,10 @@ public class MethodKit {
|
||||
forbiddenMethods.remove(methodName);
|
||||
}
|
||||
|
||||
public static void clearCache() {
|
||||
methodCache.clear();
|
||||
}
|
||||
|
||||
public static MethodInfo getMethod(Class<?> targetClass, String methodName, Object[] argValues) {
|
||||
Class<?>[] argTypes = getArgTypes(argValues);
|
||||
Long key = getMethodKey(targetClass, methodName, argTypes);
|
||||
|
@ -64,7 +64,7 @@ public class ClassPathSource implements ISource {
|
||||
this.classLoader = getClassLoader();
|
||||
this.url = classLoader.getResource(finalFileName);
|
||||
if (url == null) {
|
||||
throw new IllegalArgumentException("File not found : \"" + finalFileName + "\"");
|
||||
throw new IllegalArgumentException("File not found in CLASSPATH or JAR : \"" + finalFileName + "\"");
|
||||
}
|
||||
|
||||
processIsInJarAndlastModified();
|
||||
|
@ -69,7 +69,7 @@ public class Include extends Stat {
|
||||
Expr expr = exprList.getExpr(0);
|
||||
if (expr instanceof Const && ((Const)expr).isStr()) {
|
||||
} else {
|
||||
throw new ParseException("The first parameter of #include directive must be String", location);
|
||||
throw new ParseException("The first parameter of #include directive must be String, or use the #render directive", location);
|
||||
}
|
||||
// 其它参数必须为赋值表达式
|
||||
if (len > 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user