QDox
  1. QDox
  2. QDOX-181

JavaMethod.getCallSignature() reports parameter names not types

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.2
    • Fix Version/s: 1.10.1
    • Component/s: Java API
    • Labels:
      None
    • Number of attachments :
      0

      Description

      JavaMethod.getCallSignature() returns the likes of ..

      setName(firstName, familyName)

      should be ..

      setName(java.lang.String, java.lang.String)

      Of course, we can't just change this, so lets do a new method:

      JavaMethod.getCallSignatureWithTypes() // types and names
      JavaMethod.getStrictJavaSignature() // types only a la Java

        Activity

        Hide
        Robert Scholte added a comment -

        According to http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/Method.html#toString() this is exactly what you want. This one has been implementented with QDOX-151, so I don't think these extra methods are required. Maybe some improvements on the documentation.

        Show
        Robert Scholte added a comment - According to http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/Method.html#toString( ) this is exactly what you want. This one has been implementented with QDOX-151 , so I don't think these extra methods are required. Maybe some improvements on the documentation.
        Hide
        Paul Hammant added a comment -

        Actually I think getDeclarationSignature() is more what I want for my particular case.

        void setName(java.lang.String firstName, java.lang.String familytName)

        Perhaps this can be closed w/o action.

        Show
        Paul Hammant added a comment - Actually I think getDeclarationSignature() is more what I want for my particular case. void setName(java.lang.String firstName, java.lang.String familytName) Perhaps this can be closed w/o action.
        Robert Scholte made changes -
        Field Original Value New Value
        Fix Version/s 1.11 [ 15653 ]
        Resolution Won't Fix [ 2 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

          • Assignee:
            Paul Hammant
            Reporter:
            Paul Hammant
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: