From 46cbaa9729903647b844c14de664efc7538f1d2c 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) --- .../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 0cf12c389b..18bc05a2a1 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;