Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-4
-
None
-
None
Description
When compiling and running this sample, you'll get an exception missing line / col information:
import org.codehaus.groovy.runtime.InvokerHelper
class SomeObject {
@Property closure =
}
class SomeMetaClass extends MetaClassImpl {
Map closureProps = [:]
SomeMetaClass(Class c)
{ super(InvokerHelper.getInstance().getMetaRegistry()) }void setProperty(Object object, String property, Object newValue)
{ println "setProp" closureProps[property, newValue] }Object getProperty(Object object, String property)
{ println "getProp" closureProps[property] }}
println "new"
def obj = new SomeObject()
obj.metaClass = new SomeMetaClass()
println "setting foo"
obj.closure.foo = 345
println "executing closure"
obj.closure()