Groovy
  1. Groovy
  2. GROOVY-3445

Provide better error message when an annotation member is set twice

    Details

    • Type: Improvement Improvement
    • Status: 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

      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 created issue -
        Peter Niederwieser made changes -
        Field Original Value New Value
        Fix Version/s 1.5.8 [ 14630 ]
        Fix Version/s 1.6.1 [ 14852 ]
        Peter Niederwieser made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12732439 ] Default workflow, editable Closed status [ 12744305 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12970285 ] Default workflow, editable Closed status [ 12978019 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        3h 58m 1 Peter Niederwieser 29/Mar/09 21:01
        Resolved Resolved Closed Closed
        9d 3h 29m 1 Paul King 08/Apr/09 00:31

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development