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

Annotated enum constants breaks enum

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.4.0-rc-1
    • 2.5.0-alpha-1
    • None
    • None

    Description

      If you write something like this:

      enum FooEnum {
          foo,
          @Deprecated bar,
          baz,
          blah
      }
      

      Then the generated enum misses all constants after foo. There's no compilation error (and it should pass), but constants are just missing.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              melix Cédric Champeau
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: