diff --git a/spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java b/spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java index 026cacac07..8cd7a42704 100644 --- a/spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java +++ b/spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java @@ -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 { } 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); } }