Browse Source

Polished exception message

pull/294/merge
Juergen Hoeller 12 years ago
parent
commit
6110919842
  1. 6
      spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java

6
spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java

@ -109,7 +109,7 @@ public class MethodReference extends SpelNodeImpl { @@ -109,7 +109,7 @@ public class MethodReference extends SpelNodeImpl {
throwSimpleExceptionIfPossible(value, ae);
// At this point we know it wasn't a user problem so worth a retry if a
// better candidate can be found
// better candidate can be found.
this.cachedExecutor = null;
}
}
@ -217,9 +217,7 @@ public class MethodReference extends SpelNodeImpl { @@ -217,9 +217,7 @@ public class MethodReference extends SpelNodeImpl {
}
throw new ExpressionInvocationTargetException(getStartPosition(),
"A problem occurred when trying to execute method '" + this.name +
"' on object of type '" +
value.getClass().getName() + "'",
rootCause);
"' on object of type [" + value.getClass().getName() + "]", rootCause);
}
}

Loading…
Cancel
Save