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

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: