aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/javassist/bytecode/InsertGap0.java
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2018-09-08 15:47:38 +0900
committerchibash <chiba@javassist.org>2018-09-08 15:47:38 +0900
commit6320bc4e14350af392b285b1b1ea312673625b21 (patch)
tree8fd478f2baa4bd75048432ed3474d383131f5f04 /src/test/javassist/bytecode/InsertGap0.java
parent0958148acbb1b737ca90f78670a4d13c6f321416 (diff)
downloadjavassist-6320bc4e14350af392b285b1b1ea312673625b21.tar.gz
javassist-6320bc4e14350af392b285b1b1ea312673625b21.zip
changes CtClass#toClass() and ClassPool#toClass() etc. to support Java 11,
in other words, java.lang.invoke.MethodHandles.Lookup.
Diffstat (limited to 'src/test/javassist/bytecode/InsertGap0.java')
-rw-r--r--src/test/javassist/bytecode/InsertGap0.java4
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();