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

enum does not support default map constructors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.5
    • Fix Version/s: 2.2.0-beta-1
    • Component/s: None
    • Labels:
      None
    • Environment:
      should not matter

      Description

      This enum should compile, but it does not.

      enum ExportFormat {
      
          EXCEL_OOXML(mime: "application/vnd.ms-excel", extension: "xlsx"),
          EXCEL_BINARY(mime: "application/vnd.ms-excel", extension: "xls"),
          EXCEL_HTML(mime: "application/vnd.ms-excel", extension: "xls")
          
          String mime
          String extension
      
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                paulk Paul King
                Reporter:
                ddurham David Durham
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: