jenkinsci / groovy-sandbox

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

class: org/kohsuke/groovy/sandbox/SandboxTransformer, method: super$2$needSortedInput signature: ()Z) Illegal use of nonvirtual function call #72

Closed afuchrisma closed 3 years ago

afuchrisma commented 3 years ago

when I new SandboxTransformer() error happend

class: org/kohsuke/groovy/sandbox/SandboxTransformer, method: super$2$needSortedInput signature: ()Z) Illegal use of nonvirtual function call

How can I solve this problem my code like this

  1. CompilerConfiguration config = new CompilerConfiguration();
  2. config.addCompilationCustomizers(new CompilationCustomizer[]{new SandboxTransformer()});