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

Can't access nested enums

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 1.0-JSR-4
    • 1.0-JSR-6
    • None
    • None

    Description

      Prior to JSR-4 I was able to access to access nested enums such as:

      public class Foo {
      public enum Bar

      { BAZ }

      }

      like so:

      def x = Foo.Bar.BAZ

      Now I get a "groovy.lang.MissingFieldException: No such field: Bar for class: java.lang.Class".

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            ejain Eric Jain
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: