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

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Aug 8 12:04:49 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBSEAM-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed JBSEAM-3246.
-----------------------------

    Resolution: Done


> 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