+ fix bug that prevented internal expression cache from being used

master
Costin Leau 14 years ago
parent 5daad3e081
commit a4aca64007
  1. 4
      org.springframework.context/src/main/java/org/springframework/cache/interceptor/ExpressionEvaluator.java

@ -56,7 +56,7 @@ class ExpressionEvaluator {
}
boolean condition(String conditionExpression, Method method, EvaluationContext evalContext) {
Expression condExp = conditionCache.get(conditionExpression);
Expression condExp = conditionCache.get(method);
if (condExp == null) {
condExp = parser.parseExpression(conditionExpression);
conditionCache.put(method, condExp);
@ -65,7 +65,7 @@ class ExpressionEvaluator {
}
Object key(String keyExpression, Method method, EvaluationContext evalContext) {
Expression keyExp = keyCache.get(keyExpression);
Expression keyExp = keyCache.get(method);
if (keyExp == null) {
keyExp = parser.parseExpression(keyExpression);
keyCache.put(method, keyExp);

Loading…
Cancel
Save