From 4c5ab74c4151baff0395829fba212056fbf5153e Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 16 Feb 2009 01:36:13 +0000 Subject: [PATCH] pre-converted property values are preserved more eagerly for re-created beans (SPR-5293) git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@641 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../main/java/org/springframework/beans/PropertyValue.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.springframework.beans/src/main/java/org/springframework/beans/PropertyValue.java b/org.springframework.beans/src/main/java/org/springframework/beans/PropertyValue.java index 0cf12c389ba..18bc05a2a1b 100644 --- a/org.springframework.beans/src/main/java/org/springframework/beans/PropertyValue.java +++ b/org.springframework.beans/src/main/java/org/springframework/beans/PropertyValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2007 the original author or authors. + * Copyright 2002-2009 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. @@ -80,6 +80,8 @@ public class PropertyValue extends BeanMetadataAttributeAccessor implements Seri this.name = original.getName(); this.value = original.getValue(); this.source = original.getSource(); + this.converted = original.converted; + this.convertedValue = original.convertedValue; this.conversionNecessary = original.conversionNecessary; this.resolvedTokens = original.resolvedTokens; this.resolvedDescriptor = original.resolvedDescriptor;