Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4169

Compile error on annotations for closure parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.2
    • 1.7.3, 1.8-beta-1
    • Compiler
    • None
    • Windows XP

    Description

      I get a compile error on annotations which are defined for closure parameters. This is a minimal and complete example where the problem occurs:

      public @interface description {
      String value()
      }

      newClassImpl = { @description("Whether the class is abstract") boolean abstr ->
      }

      The compile error in this case says "class description is not an annotation in @description".

      Attachments

        Activity

          People

            roshandawrani Roshan Dawrani
            herrmama Markus Herrmannsdoerfer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: