[ 
http://jira.codehaus.org/browse/QDOX-151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Siveton updated QDOX-151:
---------------------------------

    Attachment: TestQDOX151.java

Using qdox 1.10 snapshot, I noticed that the JavaMethod#toSting() is different 
form the Method#toString().

Here is a small test case:

{noformat}
public <T extends StringBuffer> List<T> myMethod( T field, List<T> list )
{noformat}

{noformat}
javaMethod.toString()=public java.util.List 
test.TestQDOX151.myMethod(java.lang.StringBuffer fieldjava.util.List)
class.getMethods()[1]=public java.util.List 
test.TestQDOX151.myMethod(java.lang.StringBuffer,java.util.List)
{noformat}

> introduce toString() according to the Java Language Specification
> -----------------------------------------------------------------
>
>                 Key: QDOX-151
>                 URL: http://jira.codehaus.org/browse/QDOX-151
>             Project: QDox
>          Issue Type: Improvement
>          Components: Java API
>    Affects Versions: 1.9
>            Reporter: Robert Scholte
>            Priority: Minor
>         Attachments: TestQDOX151.java
>
>
> When calling the toString() on most of the model-Java* classes in qdox, it'll 
> return the complete codeblock.
> Their java.lang.reflect equivalent acts a bit different. For example 
> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/Method.html#toString()
>  
> Nowhere is documented that toString() will return the complete codeblock.
> two choices: keep the current toString(0 as it is and introduce another 
> method ( toMethodString() or toSpecString() or ....)
> or rename toString() (to getCodeblock() or ....) and implement the toString() 
> according to tha javaAPI

-- 
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