[ 
http://jira.codehaus.org/browse/QDOX-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=169265#action_169265
 ] 

Robert Scholte commented on QDOX-150:
-------------------------------------

JavaMethod has been extended with getTypeParameters(), which returns the 
TypeParameters (what a surprise, isn't it?). This gives you the opportunity to 
get the real Type.
Don't know if this is enough to solve the problem.

btw: the getDeclarationSignature() will remain like it is. QDOX-151 has been 
created to get a better toString() representation

> Better handler of generics in Type
> ----------------------------------
>
>                 Key: QDOX-150
>                 URL: http://jira.codehaus.org/browse/QDOX-150
>             Project: QDox
>          Issue Type: Bug
>    Affects Versions: 1.8
>            Reporter: Vincent Siveton
>            Assignee: Robert Scholte
>         Attachments: TestQDOX150.java
>
>
> Suppose a method like the following
> {noformat}
>   public <T extends RequestItem> List<RequestItem> myMethod(T request) throws 
> Exception {
>       return null;
>     }
> {noformat}
> Using Java reflection, you will have the correct parameter instead of generic:
> {noformat}
> public java.util.List XXX.XXXClass.myMethod(java.util.Date) throws 
> java.lang.Exception
> {noformat}
> In QDOX, we have a generic ie T as parameter:
> {noformat}
> javaMethod.getParameters()[0].getType().getJavaClass() = T instead of 
> java.util.Date
> {noformat}

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to