Fixed serializability problems in ConversionException, EvaluationException and MethodInvocationException.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user