mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
SPR-6245 bean wrapper copy constructor not copying all state
This commit is contained in:
+3
-3
@@ -273,10 +273,10 @@ public class GenericFormatterRegistry implements FormatterRegistry, ApplicationC
|
||||
if (factory != null) {
|
||||
return factory.getFormatterHolder(annotation);
|
||||
} else {
|
||||
Formatted formattedAnnotation = annotationType.getAnnotation(Formatted.class);
|
||||
if (formattedAnnotation != null) {
|
||||
Formatted formatted = annotationType.getAnnotation(Formatted.class);
|
||||
if (formatted != null) {
|
||||
// property annotation has @Formatted meta-annotation
|
||||
Formatter<?> formatter = createFormatter(formattedAnnotation.value());
|
||||
Formatter<?> formatter = createFormatter(formatted.value());
|
||||
addFormatterByAnnotation(annotationType, formatter);
|
||||
return findFormatterHolderForAnnotation(annotation);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user