QDox
  1. QDox
  2. QDOX-105

getSignature() / getDeclarationSignature() writes method body too

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: Java API
    • Labels:
      None
    • Environment:
      qdox 1.6.1
    • Number of attachments :
      0

      Description

      All the get<Whatever>Signature methods in JavaMethod also write
      method body, without {} which breaks xdoclet-2 plugins.

      For example for:

      public void otherDummy()

      { System.out.println("other"); }

      following is writen out by getCalSignature():

      otherDummy()
      System.out.println("other");

      Quick look into sources reveals that all signature emiting methods utilize writeBody() , which
      in any case emits method body.

      This bug seems to be really old and was unnoticed by us because old versions did not stored method bodies at all.

        Activity

        Hide
        Dennis Lundberg added a comment -

        The issue with JavaMethod writing the body without {} has been fixed in svn trunk.

        Show
        Dennis Lundberg added a comment - The issue with JavaMethod writing the body without {} has been fixed in svn trunk.
        Hide
        Dennis Lundberg added a comment -

        Fixed in r485.

        Show
        Dennis Lundberg added a comment - Fixed in r485.
        Dennis Lundberg made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Joe Walnes [ jwalnes1 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.7 [ 11160 ]

          People

          • Assignee:
            Joe Walnes
            Reporter:
            Konstantin Pribluda
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: