geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r765812 - /geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/recipe/CollectionRecipe.java
Date Fri, 17 Apr 2009 00:09:26 GMT
Author: gawor
Date: Fri Apr 17 00:09:26 2009
New Revision: 765812

URL: http://svn.apache.org/viewvc?rev=765812&view=rev
Log:
return the right type

Modified:
    geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/recipe/CollectionRecipe.java

Modified: geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/recipe/CollectionRecipe.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/recipe/CollectionRecipe.java?rev=765812&r1=765811&r2=765812&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/recipe/CollectionRecipe.java
(original)
+++ geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/recipe/CollectionRecipe.java
Fri Apr 17 00:09:26 2009
@@ -188,7 +188,7 @@
 
         // no type explicitly set
         if (RecipeHelper.hasDefaultConstructor(type)) {
-            return expectedClass;
+            return type;
         } else if (expectedClass.isAssignableFrom(SortedSet.class)) {
             return TreeSet.class;
         } else if (expectedClass.isAssignableFrom(Set.class)) {



Mime
View raw message