aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/javassist/tools
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/tools
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/tools')
-rw-r--r--src/test/javassist/tools/CallbackTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/javassist/tools/CallbackTest.java b/src/test/javassist/tools/CallbackTest.java
index 96632bda..f5861ceb 100644
--- a/src/test/javassist/tools/CallbackTest.java
+++ b/src/test/javassist/tools/CallbackTest.java
@@ -3,6 +3,7 @@ package javassist.tools;
import javassist.*;
import junit.framework.TestCase;
import test.javassist.tools.DummyClass;
+import test.javassist.tools.DefineClassCapability;
import static javassist.tools.Callback.*;
@@ -34,7 +35,7 @@ public class CallbackTest extends TestCase {
});
// Change class and invoke method;
- classToChange.toClass();
+ classToChange.toClass(DefineClassCapability.class);
new DummyClass().dummyMethod();
}
}