serialization testing

This commit is contained in:
Keith Donald
2008-04-21 22:35:29 +00:00
parent 9c83674206
commit e092fccb78
4 changed files with 62 additions and 6 deletions

View File

@@ -15,6 +15,8 @@
*/
package org.springframework.binding.expression.el;
import java.io.Serializable;
import javax.el.ELContext;
import javax.el.ELResolver;
@@ -28,7 +30,7 @@ import javax.el.ELResolver;
* @author Keith Donald
* @author Jeremy Grelle
*/
public interface ELContextFactory {
public interface ELContextFactory extends Serializable {
/**
* Configures and returns an {@link ELContext} to be used in evaluating EL expressions on the given base target

View File

@@ -69,16 +69,16 @@ class OgnlExpression implements Expression {
this.expressionString = expressionString;
}
public int hashCode() {
return expression.hashCode();
}
public boolean equals(Object o) {
if (!(o instanceof OgnlExpression)) {
return false;
}
OgnlExpression other = (OgnlExpression) o;
return expression.equals(other.expression);
return expressionString.equals(other.expressionString);
}
public int hashCode() {
return expressionString.hashCode();
}
public Object getValue(Object context) throws EvaluationException {