[jboss-jira] [JBoss JIRA] Updated: (JBBUILD-331) Add support for java.lang.reflect.Type

Thomas Diesler (JIRA) jira-events at jboss.com
Fri Jan 5 07:05:26 EST 2007


     [ http://jira.jboss.com/jira/browse/JBBUILD-331?page=all ]

Thomas Diesler updated JBBUILD-331:
-----------------------------------

    Description: 
Please add support for this:

   public static Type getGenericValueType(Type holder)
   {
      return (holder instanceof ParameterizedType) ? ((ParameterizedType)holder).getActualTypeArguments()[0] : Object.class;
   }


  was:
Please add support for this:

Field  someField;
Method someMethod;

processAnnotatedElement(someField);
processAnnotatedElement(someMethod);

processAnnotatedElement(AnnotatedElement el)
{
   SomeAnnotation an = el.getAnnotation(SomeAnnotation.class);
   ...
}


> Add support for java.lang.reflect.Type
> --------------------------------------
>
>                 Key: JBBUILD-331
>                 URL: http://jira.jboss.com/jira/browse/JBBUILD-331
>             Project: JBoss Build System
>          Issue Type: Feature Request
>          Components: JBossRetro
>            Reporter: Thomas Diesler
>
> Please add support for this:
>    public static Type getGenericValueType(Type holder)
>    {
>       return (holder instanceof ParameterizedType) ? ((ParameterizedType)holder).getActualTypeArguments()[0] : Object.class;
>    }

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

        



More information about the jboss-jira mailing list