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

Cannot have abstract methods in enum when using joint compilation

    XMLWordPrintableJSON

Details

    Description

      When using joint compilation, if an Groovy enum has defined an abstract method, the groovyc generated stub is marked as abstract, which then fails to compile because the abstract modifier is not allowed on enums.

      error: modifier abstract not allowed here
      public abstract enum Foo
      

      Attachments

        Activity

          People

            paulk Paul King
            mavieira Mark Vieira
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: