Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 2.0.0m2
-
Fix Version/s: 2.0.0RC1
-
Component/s: Compiler Integration
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
This code doesn't compile:
static GroovyCache rabattDescCache = new GroovyCache (Desc.class, 'id') { company, id ->
}
I get an error marker at "company" saying: Groovy:unexpected token company @line....
GroovyCache is a Java class with this constructor:
public GroovyCache (Class cacheName, String subName, Closure cacheEntryFactory)
When I switch back to the 1.6 compiler by deleting the entry in bundles.info, the project compiles.
I'm not sure whether the bug is in the Eclipse plugin or the 1.7 Groovy compiler. This bug also existed in m1.
Activity
Andy Clement
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Andy Clement [ aclement ] |
Andy Clement
made changes -
| Resolution | Not A Bug [ 6 ] | |
| Fix Version/s | 2.0.0RC1 [ 15956 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
Andrew Eisenberg
made changes -
| Component/s | Compiler Integration [ 14686 ] | |
| Component/s | Builder [ 13146 ] |