Fixed serializability problems in ConversionException, EvaluationException and MethodInvocationException.

This commit is contained in:
Erwin Vervaet
2007-05-04 09:01:24 +00:00
parent 653650234f
commit d5c7a28b53
4 changed files with 12 additions and 5 deletions

View File

@@ -31,8 +31,9 @@ public class ConversionException extends NestedRuntimeException {
/**
* The value we tried to convert.
* Transient because we cannot guarantee that the value is Serializable.
*/
private Object value;
private transient Object value;
/**
* The target type we tried to convert to.

View File

@@ -25,9 +25,10 @@ import org.springframework.core.NestedRuntimeException;
public class EvaluationException extends NestedRuntimeException {
/**
* The evaluation attempt that failed.
* The evaluation attempt that failed.
* Transient because an EvaluationAttempt is not serializable.
*/
private EvaluationAttempt evaluationAttempt;
private transient EvaluationAttempt evaluationAttempt;
/**
* Creates a new evaluation exception.

View File

@@ -29,13 +29,15 @@ public class MethodInvocationException extends NestedRuntimeException {
/**
* The method signature.
* Transient because a MethodSignature is not Serializable.
*/
private MethodSignature methodSignature;
private transient MethodSignature methodSignature;
/**
* The method invocation argument values.
* Transient because we cannot guarantee that the arguments are Serializable.
*/
private Object[] arguments;
private transient Object[] arguments;
/**
* Signals that the method with the specified signature could not be invoked