diff options
author | chibash <chiba@javassist.org> | 2018-09-08 15:47:38 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2018-09-08 15:47:38 +0900 |
commit | 6320bc4e14350af392b285b1b1ea312673625b21 (patch) | |
tree | 8fd478f2baa4bd75048432ed3474d383131f5f04 /src/test/javassist/tools | |
parent | 0958148acbb1b737ca90f78670a4d13c6f321416 (diff) | |
download | javassist-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.java | 3 |
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(); } } |