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:
rstoyanchev
2023-02-14 18:12:48 +00:00
parent a3efcabe0c
commit f54e1ef880
3 changed files with 11 additions and 7 deletions

View File

@@ -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);
}

View File

@@ -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);
}