groovy
  1. groovy
  2. GROOVY-3445

Provide better error message when an annotation member is set twice

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major 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
    • Number of attachments :
      0

      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.

        Activity

        Peter Niederwieser made changes -
        Field Original Value New Value
        Fix Version/s 1.6.1 [ 14852 ]
        Fix Version/s 1.5.8 [ 14630 ]
        Peter Niederwieser made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: