[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3246) Reflections.getCollectionElementType does not deal with generics classes

Daniel Roth (JIRA) jira-events at lists.jboss.org
Fri Aug 8 09:10:50 EDT 2008


Reflections.getCollectionElementType does not deal with generics classes
------------------------------------------------------------------------

                 Key: JBSEAM-3246
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3246
             Project: Seam
          Issue Type: Bug
            Reporter: Daniel Roth
            Assignee: Pete Muir
             Fix For: 2.1.0.BETA1


If you have a component which takes a Class<? extends SomeClass> as attribute, IllegalArgumentException will be thrown:

      if ( !(typeArgument instanceof Class) )
      {
         throw new IllegalArgumentException("type argument not a class");
      }

if you just use a Class, it will work.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list