QDox
  1. QDox
  2. QDOX-103

Annotation on method parameter generates a ParseException

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: Parser
    • Labels:
      None
    • Environment:
      Windows XP Pro SP2, Java 1.5_0_7
    • Number of attachments :
      1

      Description

      An annotated method parameter can be compiled by JDK1.5, but XDoclet2 with QDox1.6 generates:

      a com.thoughtworks.qdox.parser.ParseException: syntax error @[9,27] in file:/C:/MyProj/src/com/cnn/MyMethodAnnotation.java
      ---------------Source Code---------------------
      package com.cnn;

      import org.jetbrains.annotations.NotNull;

      public class MyMethodAnnotation
      {
      String dummy;

      public void setDummy( @NotNull String dummy )

      { this.dummy = dummy; }

      }

        Activity

        Hide
        Frederick N. Brier added a comment -

        Patch file for fixing the reported bug. Includes additional method in AnnotationsTest.java to replicate the bug and the change to parser.y to fix the problem.

        Show
        Frederick N. Brier added a comment - Patch file for fixing the reported bug. Includes additional method in AnnotationsTest.java to replicate the bug and the change to parser.y to fix the problem.
        Frederick N. Brier made changes -
        Field Original Value New Value
        Attachment MethodParmAnnotation.patch [ 22558 ]
        Hide
        Paul Hammant added a comment -

        Applied: Thanks

        Show
        Paul Hammant added a comment - Applied: Thanks
        Paul Hammant made changes -
        Assignee Paul Hammant [ paul ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Paul Hammant
            Reporter:
            Frederick N. Brier
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: