You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by ma...@apache.org on 2010/07/24 15:45:05 UTC

svn commit: r978875 - /incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BeanRecipe.java

Author: mahrwald
Date: Sat Jul 24 13:45:05 2010
New Revision: 978875

URL: http://svn.apache.org/viewvc?rev=978875&view=rev
Log:
ARIES-366: Remove commented out code, which is no longer needed

Modified:
    incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BeanRecipe.java

Modified: incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BeanRecipe.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BeanRecipe.java?rev=978875&r1=978874&r2=978875&view=diff
==============================================================================
--- incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BeanRecipe.java (original)
+++ incubator/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BeanRecipe.java Sat Jul 24 13:45:05 2010
@@ -821,18 +821,6 @@ public class BeanRecipe extends Abstract
 
         final PropertyDescriptor pd = getPropertyDescriptor(clazz, names[names.length - 1]);
         if (pd.allowsSet()) {
-            // convert the value to type of setter/field
-//            Type type = pd.getGenericType(propertyValue);
-//            try {
-//                propertyValue = convert(propertyValue, type);
-//            } catch (Exception e) {
-//                    String valueType = propertyValue == null ? "null" : propertyValue.getClass().getName();
-//                String memberType = type instanceof Class ? ((Class) type).getName() : type.toString();
-//                throw new ComponentDefinitionException("Unable to convert property value" +
-//                        " from " + valueType +
-//                        " to " + memberType +
-//                        " for injection " + pd, e);
-//            }
             try {
                 pd.set(instance, propertyValue, blueprintContainer.getAccessControlContext());
             } catch (Exception e) {