Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7-beta-1
-
Fix Version/s: 1.6.5, 1.7-beta-2
-
Component/s: Compiler
-
Labels:None
-
Environment:Groovy Version: 1.7-beta-1 JVM: 1.6.0_11
windows xp sp3
-
Testcase included:yes
-
Number of attachments :
Description
static init block in enum fails, similar code in a class works:
package p
enum Color {
r,g,b
static List l=[1,2]
static init()
static
{ init() }}
//Color.init();
println Color.r
Activity
Roshan Dawrani
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Roshan Dawrani [ roshandawrani ] |
Roshan Dawrani
made changes -
| Fix Version/s | 1.6.5 [ 15539 ] | |
| Fix Version/s | 1.7-beta-2 [ 15540 ] | |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |