[seam-commits] Seam SVN: r8641 - trunk/src/main/org/jboss/seam/util.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Aug 8 12:02:46 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-08-08 12:02:46 -0400 (Fri, 08 Aug 2008)
New Revision: 8641

Modified:
   trunk/src/main/org/jboss/seam/util/Reflections.java
Log:
JBSEAM-3246

Modified: trunk/src/main/org/jboss/seam/util/Reflections.java
===================================================================
--- trunk/src/main/org/jboss/seam/util/Reflections.java	2008-08-08 15:56:40 UTC (rev 8640)
+++ trunk/src/main/org/jboss/seam/util/Reflections.java	2008-08-08 16:02:46 UTC (rev 8641)
@@ -194,6 +194,10 @@
          throw new IllegalArgumentException("no type arguments for collection type");
       }
       Type typeArgument = typeArguments.length==1 ? typeArguments[0] : typeArguments[1]; //handle Maps
+      if (typeArgument instanceof ParameterizedType)
+      {
+         typeArgument = ((ParameterizedType) typeArgument).getRawType();
+      }
       if ( !(typeArgument instanceof Class) )
       {
          throw new IllegalArgumentException("type argument not a class");




More information about the seam-commits mailing list