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

Groovy support for JSR 308/JEP 104 (Annotations in more places)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • None
    • None

    Description

      Now that master is on JDK 8, we should look at supporting annotations in more places (i.e. JSR 308 or some subset thereof).
      It will require some plugin tweaking for configuring annotation nodes and also some grammar changes. For the backport in
      particular, we'll need to decide whether we don't backport the relevant grammar changes or allow them in the grammar
      but gracefully handle them with appropriate error messages. My initial gut feel is we should allow them in the grammar but
      we can make that call after further investigation.

      Some other decisions that might arise.

      • Do we support just a subset of the JSR?
      • Currently we allow the type placeholder 'def' to be elided if an annotation takes its place. Does this convention need to change with the additional annotation positions or do we need to clarify what happens in different scenarios?

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              paulk Paul King
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: