QDox
  1. QDox
  2. QDOX-128

Parser does not keep quotes in annotation string and char values

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      The parser strips single and double quotes from character and string constants in annotation values. E.g. an annotation @Anno(run = "1.0") results in the value <1.0> (without the <>) for parameter "run". This makes the value indistinguishable from numerical values or field references. Therefor, the parser should keep the quotes (resulting in value <"1.0">). The attached patch fixes this.

        Activity

        Hide
        Dennis Lundberg added a comment -

        Can't see any attached patch...

        Show
        Dennis Lundberg added a comment - Can't see any attached patch...
        Hide
        Robert Scholte added a comment -

        I've added a test, but can't reproduce it. Maybe the description isn't clear enough or this issue could be closed

        Show
        Robert Scholte added a comment - I've added a test, but can't reproduce it. Maybe the description isn't clear enough or this issue could be closed
        Robert Scholte made changes -
        Field Original Value New Value
        Attachment qdox-128.patch [ 39544 ]
        Hide
        Robert Scholte added a comment -

        r522 | rfscholte | 2009-01-30 22:29:23 CET

        added test for qdox-128; doesn't seem to fail
        ----------------------------------------------------------------------------

        Show
        Robert Scholte added a comment - r522 | rfscholte | 2009-01-30 22:29:23 CET added test for qdox-128; doesn't seem to fail ----------------------------------------------------------------------------
        Robert Scholte made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jochen Kuhnle
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: