[
http://jira.codehaus.org/browse/QDOX-150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vincent Siveton updated QDOX-150:
---------------------------------
Attachment: TestQDOX150.java
Thanks Robert, yes I see it but It doesn't seems to work. Here is a small test
case and the result:
{noformat}
Looking the class: test.TestQDOX150
Looking the method: myMethod
javaMethod.getCallSignature()=myMethod(request)
javaMethod.getDeclarationSignature( true )=public java.util.List myMethod(T
request) throws java.lang.Exception
param(type.getValue())=T
param(type.getGenericValue())=T
javaMethod.getReturns().getValue()=java.util.List
javaMethod.getReturns().getGenericValue()=java.util.List<java.lang.StringBuffer>
{noformat}
BTW IMHO the method getDeclarationSignature() should use generic to be
consistent with java.lang.reflect.Method#toString()
> 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