Consider the following Groovy classes:
package test7
import java.beans.PropertyChangeSupport
class B extends PropertyChangeSupport {
Object info
}
And:
package test7
import java.beans.PropertyChangeEvent
import javax.annotation.PostConstruct
class D {
B bean
@PostConstruct
void init() {
bean.with {
addPropertyChangeListener('name') { PropertyChangeEvent event ->
info
}
}
}
}
The info reference is not recognized by Greclipse inside the inner closure. It should be a reference to B.info, by virtue of the outer with closure.
Consider the following Groovy classes:
And:
The
inforeference is not recognized by Greclipse inside the inner closure. It should be a reference toB.info, by virtue of the outerwithclosure.