groovy

Can't access nested enums

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.0-JSR-4
  • Fix Version/s: 1.0-JSR-6
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

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".

Activity

Hide
Eric Jain added a comment -

Looks like this is working again in JSR-6...

Show
Eric Jain added a comment - Looks like this is working again in JSR-6...

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: