Grails
  1. Grails
  2. GRAILS-8696

Upgrade groovy version to 1.8.6 (GROOVY-5212: Compilation problem for java enums defined as groovy classes)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.1
    • Component/s: None
    • Labels:
      None

      Description

      I'm getting compilation the error described at http://jira.codehaus.org/browse/GROOVY-5212

      I have the below code in EnumClass.groovy in grails-app/domain

      public enum EnumClass{
      Instance1,
      Instance2,
      Instance3;
      }

      This is occurring with build snapshot 1698: http://hudson.grails.org/view/Grails%202.0.x/job/grails_core_2.0.x/1698/
      I have not encountered any problem with 2.0 Final since it uses groovy 1.8.4

      Error log:

      | Compiling 224 source files
      | Compiling 224 source files.
      | Error Compilation error: startup failed:
      Compile error during compilation with javac.
      /tmp/groovy-generated-395334201199275356-java-source/edu/wustl/cgw/domain/EnumClass.java:10: modifier final not allowed here
      public final enum EnumClass
                   ^
      

        Activity

        Show
        Raviteja added a comment - http://groovy.329449.n5.nabble.com/1-8-5-groovyc-joint-compilation-fails-to-stub-enums-correctly-td5324268.html
        Hide
        Raviteja added a comment -
        Show
        Raviteja added a comment - I think this can be marked resolved https://github.com/grails/grails-core/commit/f7316511f25dfbeacb0c7ede680e9a780e6fbe4a

          People

          • Assignee:
            Unassigned
            Reporter:
            Raviteja
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development