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

Allow annotations to take closures as arguments

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8-beta-1
    • None
    • None

    Description

      The idea is to allow this kind of annotation:

      @Validator

      { password.size() > 6 }

      String password

      @Pre

      { this.balance > amount }

      void creditAccount(BigDecimal amount)

      { ... }

      See this thread for more information:
      http://markmail.org/message/y3l3cbhtzrhapdi5

      Attachments

        Activity

          People

            pniederw Peter Niederwieser
            guillaume Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: