Skip to content

Commit ed54895

Browse files
committed
Consistent exposure of nested parameter type in binding exceptions
1 parent b72594d commit ed54895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-web/src/main/java/org/springframework/web/bind/MissingPathVariableException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -51,7 +51,7 @@ public MissingPathVariableException(String variableName, MethodParameter paramet
5151
@Override
5252
public String getMessage() {
5353
return "Missing URI template variable '" + this.variableName +
54-
"' for method parameter of type " + this.parameter.getParameterType().getSimpleName();
54+
"' for method parameter of type " + this.parameter.getNestedParameterType().getSimpleName();
5555
}
5656

5757
/**

0 commit comments

Comments
 (0)