diff options
Diffstat (limited to 'src/test/javassist/bytecode/InsertGap0.java')
-rw-r--r-- | src/test/javassist/bytecode/InsertGap0.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/javassist/bytecode/InsertGap0.java b/src/test/javassist/bytecode/InsertGap0.java index 824b9305..425f12d7 100644 --- a/src/test/javassist/bytecode/InsertGap0.java +++ b/src/test/javassist/bytecode/InsertGap0.java @@ -175,7 +175,7 @@ public final class InsertGap0 extends JvstTestRoot { cc.addField(new CtField(CtClass.intType, "i", cc), "++counter"); boolean p = cc.stopPruning(true); cc.writeFile(); - Class c = cc.toClass(); + Class c = cc.toClass(ClassFile.class); cc.stopPruning(p); Object obj = c.getConstructor().newInstance(); @@ -194,7 +194,7 @@ public final class InsertGap0 extends JvstTestRoot { cc.addField(new CtField(CtClass.intType, "i", cc), "++counter"); boolean p = cc.stopPruning(true); cc.writeFile(); - Class c = cc.toClass(); + Class c = cc.toClass(ClassFile.class); cc.stopPruning(p); Object obj = c.getConstructor().newInstance(); |