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

Provide better error message when an annotation member is set twice

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7-beta-1
    • Fix Version/s: 1.6.1, 1.5.8, 1.7-beta-1
    • Component/s: Compiler
    • Labels:
      None

      Description

      GROOVY-3435 made it necessary to prevent an annotation member from being set twice (which is a good idea anyway):

      @Foo(bar=1, bar=2) // no longer allowed
      class Moo {}

      However this shouldn't result in a GroovyBugError but in a user-friendly error message.

        Attachments

          Activity

            People

            • Assignee:
              pniederw Peter Niederwieser
              Reporter:
              pniederw Peter Niederwieser
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: