geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r773362 - /geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/recipe/MapRecipe.java
Date Sun, 10 May 2009 16:42:09 GMT
Author: gawor
Date: Sun May 10 16:42:09 2009
New Revision: 773362

URL: http://svn.apache.org/viewvc?rev=773362&view=rev
Log:
fix generics support

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

Modified: geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/recipe/MapRecipe.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/recipe/MapRecipe.java?rev=773362&r1=773361&r2=773362&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/recipe/MapRecipe.java
(original)
+++ geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/recipe/MapRecipe.java
Sun May 10 16:42:09 2009
@@ -145,7 +145,7 @@
         // get component type
         Type keyType = Object.class;
         Type valueType = Object.class;
-        Type[] typeParameters = RecipeHelper.getTypeParameters(Collection.class, expectedType);
+        Type[] typeParameters = RecipeHelper.getTypeParameters(Map.class, expectedType);
         if (typeParameters != null && typeParameters.length == 2) {
             if (typeParameters[0] instanceof Class) {
                 keyType = typeParameters[0];



Mime
View raw message