Issue Details (XML | Word | Printable)

Key: GROOVY-1156
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Critical Critical
Assignee: Guillaume Laforge
Reporter: Eric Jain
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
groovy

Can't access nested enums

Created: 22/Nov/05 01:49 AM   Updated: 06/Dec/06 07:15 AM   Resolved: 06/Dec/06 07:15 AM
Component/s: None
Affects Version/s: 1.0-JSR-4
Fix Version/s: 1.0-JSR-6

Time Tracking:
Not Specified


 Description  « Hide

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



Eric Jain added a comment - 06/Dec/06 07:15 AM

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