Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.3
    • Fix Version/s: 1.7.4, 1.8-beta-1
    • Component/s: Compiler
    • Labels:
      None

      Description

      The following code compiles in 1.7.2, but not in 1.7.3:

      private enum EnumWithToString {
        VALUE
        String toString() { "I'm a value" }
      }
      

      groovyc output:

      unexpected token: VALUE @ line 337, column 3.
           VALUE
           ^
      
      1 error
      

      The compile error goes away when adding a semicolon after "VALUE".

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              pniederw Peter Niederwieser
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: