jenkinsci / groovy-sandbox

(Deprecated) Compile-time transformer to run Groovy code in a restrictive sandbox
MIT License
122 stars 60 forks source link

[JENKINS-45982] Unwrap super call GroovyRuntimeExceptions #43

Closed abayer closed 6 years ago

abayer commented 6 years ago

JENKINS-45982

Upstream of https://github.com/cloudbees/groovy-cps/pull/65

This is needed to get at the actual CpsCallableInvocation wrapped up inside an InvokerInvocationException. This isn't an issue with checkedCall because that ends up, via fake CallSite magic, going through PogoMetaClassSite#call, which catches GroovyRuntimeExceptions and unwraps them itself.

cc @reviewbybees