apt api will process annotation methods with parameters

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 5.0
    • Component/s: tools
    • apt
    • generic
    • generic

      AnnotationTypeMemberDeclaration extends MethodDeclaration and ExecutableDeclaration and thus has the getParameters() method, which I would have thought always return an empty set since methods in AnnotationTypes cannot have paramters. However, it an annotation type's method(s) if defined with parameters it works as if it's a normal interface.
      A subsequent compile of the interface, if called, will fail. However, if a user is using -nocompile and their own subsequent compile, it's concievable they could be producing unexpected generated source(class) files.

            Assignee:
            Scott Seligman (Inactive)
            Reporter:
            Steve Sides (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: