mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Initialize propertyName
MethodArgumentTypeMismatchException and MethodArgumentConversionNotSupportedException are TypeMismatchException subclasses with MethodParameter information and should initialize propertyName in TypeMismatchInformation. Closes gh-29959
This commit is contained in:
+2
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -42,6 +42,7 @@ public class MethodArgumentConversionNotSupportedException extends ConversionNot
|
||||
super(value, requiredType, cause);
|
||||
this.name = name;
|
||||
this.parameter = param;
|
||||
initPropertyName(name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -42,6 +42,7 @@ public class MethodArgumentTypeMismatchException extends TypeMismatchException {
|
||||
super(value, requiredType, cause);
|
||||
this.name = name;
|
||||
this.parameter = param;
|
||||
initPropertyName(name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user