Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-4
-
None
Description
for a oneliner script like this:
c = {}
The Groovy compier generates an inner class like this (as decompiled with JAD):
public class _cls1 extends Closure
{
public Object doCall(Object obj)
{ return null; }private FuncLoose owner;
public _cls1(Object obj)
{ // implicit call to Closure(), which does not exist owner = (FuncLoose)FuncLoose.this; }}
The constructor does not call the super with the delegate.
Somehow it manages to run... amazing!
Attachments
Issue Links
- is depended upon by
-
GROOVY-764 closures
- Closed