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

Cannot have abstract methods in enum when using joint compilation

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment