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

Problems with inner enum

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.6.2, 1.7-beta-1
    • None
    • None
    • Mac OSX 10.5
      JVM 1.5.0_16

    Description

      I donĀ“t understand the behaviour of inner enums.

      class Mother {
      String name
      Mother.Child child

      enum Child

      { Franz, Ferdi, Nand }

      }

      Without a package are all things fine.
      But when I use the package familie the groovy compiler have this problem:

      unable to resolve class Mother.Child
      @ line 5, column 2.
      Mother.Child child
      ^

      Attachments

        1. testInnerEnum.groovy
          0.4 kB
          Alexander Schulz

        Activity

          People

            roshandawrani Roshan Dawrani
            rupert pupkin Alexander Schulz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: