SPR-6245 bean wrapper copy constructor not copying all state

This commit is contained in:
Keith Donald
2009-10-19 01:06:44 +00:00
parent 2fe6003923
commit e4f50f5b73
3 changed files with 15 additions and 6 deletions

View File

@@ -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 {