QDox
  1. QDox
  2. QDOX-117

annotation value poluted with class instance block

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.8
    • Component/s: Parser
    • Labels:
      None
    • Environment:
      Windows XP SP2
    • Number of attachments :
      0

      Description

      Using SVN version 463, I'm having a a problem reading annotations. Specifically, the problem occurs when I have an class instance initialization block. The contents of the instance initialization block is showing up in the annotation value reported by Qdox. For example:

      public class foo {
      ....

      { dosomething(..); }

      @Test (description="test blah blah")
      public void myTest() { ... }
      }

      In my Qdox class:
      ...
      JavaMethod m = testClass.getMethods()[0];
      m.getAnnotations()[0].getNamedParameter("description").toString();

      give:
      [{ dosomething(..); }

      test blah blah blah]

        Activity

        Hide
        Robert Scholte added a comment -

        This issue look a lot like QDOX-145. Since that issue is resolved this one seems to work just fine.
        To be sure I've added a test

        r533 | rfscholte | 2009-01-31 14:47:53 CET

        added test for qdox-117.
        ----------------------------------------------------------------------------

        Show
        Robert Scholte added a comment - This issue look a lot like QDOX-145 . Since that issue is resolved this one seems to work just fine. To be sure I've added a test r533 | rfscholte | 2009-01-31 14:47:53 CET added test for qdox-117. ----------------------------------------------------------------------------
        Robert Scholte made changes -
        Field Original Value New Value
        Assignee Robert Scholte [ rfscholte ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.8 [ 14826 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Ron Saito
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: