QDox
  1. QDox
  2. QDOX-260

Can't resolve constant field in annotation

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      There are few problems with EvaluatingVisitor. IllegalArgumentException occurs when parse annotation value

      • If constant in annotation has the same package (I provide workaround for this case)
      • If constant in annotation from sub-package of the class
      • If constant in annotation from standard java lib (an example RetentionPolicy.RUNTIME)

      I create the simple project to reproduce this bug https://github.com/baev/qdox-bug-constant-in-annotation

        Activity

        Dmitry Baev made changes -
        Field Original Value New Value
        Description There are few problems with EvaluatingVisitor. IllegalArgumentException occurs when parse annotation value
        * If constant in annotation has the same package (I provide workaround for this case)
        * If constant in annotation from standard java lib (an example RetentionPolicy.RUNTIME)

        I create the simple project to reproduce this bug https://github.com/baev/qdox-bug-constant-in-annotation
        There are few problems with EvaluatingVisitor. IllegalArgumentException occurs when parse annotation value
        * If constant in annotation has the same package (I provide workaround for this case)
        * If constant in annotation from sub-package of the class
        * If constant in annotation from standard java lib (an example RetentionPolicy.RUNTIME)

        I create the simple project to reproduce this bug https://github.com/baev/qdox-bug-constant-in-annotation

          People

          • Assignee:
            Unassigned
            Reporter:
            Dmitry Baev
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: