-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Upgrade to Groovy 2.5.13 #22505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The upgrade breaks a test,
|
The |
With the help of @wilkinsona, we've identified the specific regression and we feel that we could change that particular sample and use the latest version rather than being stuck. |
The problem can be reproduced with the following standalone Groovy script: import groovy.util.logging.Log
import java.lang.reflect.Method
import java.util.function.Consumer
import net.sf.cglib.proxy.MethodInterceptor
import net.sf.cglib.proxy.MethodProxy
import net.sf.cglib.proxy.Enhancer
@Log
@Grab("cglib:cglib:3.3.0")
class Thing {
void method() {
Runnable nested = {
log.info("hello")
}
nested.run()
}
}
def enhancer = new Enhancer()
enhancer.superclass = Thing
enhancer.callback = { obj, method, args, proxy ->
proxy.invokeSuper(obj, args);
} as MethodInterceptor
def proxy = enhancer.create()
proxy.method() I've opened GROOVY-9650. |
No description provided.
The text was updated successfully, but these errors were encountered: