Skip to content

Commit

Permalink
Patch correct method
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Aug 12, 2024
1 parent c273d54 commit 83a18dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class GroovyClassLoaderTransformer implements IExplicitTransformer {
public byte[] transform(byte[] bytes) {
try {
CtClass cc = ClassPool.getDefault().makeClass(new ByteArrayInputStream(bytes));
cc.getDeclaredMethod("loadClass").instrument(new ExprEditor(){
cc.getMethod("loadClass", "(Ljava/lang/String;ZZZ)Ljava/lang/Class;").instrument(new ExprEditor(){
@Override
public void edit(MethodCall m) throws CannotCompileException {
//Fugue.LOGGER.info("Transforming Groovy class method: {}", m.getMethodName());
Expand Down

0 comments on commit 83a18dc

Please sign in to comment.