mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 05:09:13 +00:00
SPR-6245 bean wrapper copy constructor not copying all state
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2153 50f2f4bb-b051-0410-bef5-90022cba6387
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