diff options
Diffstat (limited to 'src/test/javassist/JvstTest5.java')
-rw-r--r-- | src/test/javassist/JvstTest5.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/javassist/JvstTest5.java b/src/test/javassist/JvstTest5.java index 792fed6e..c1c10d9b 100644 --- a/src/test/javassist/JvstTest5.java +++ b/src/test/javassist/JvstTest5.java @@ -76,7 +76,7 @@ public class JvstTest5 extends JvstTestRoot { } public void testJIRA242() throws Exception { - Boolean ss = new Boolean(2 > 3); + Boolean ss = Boolean.valueOf(2 > 3); ClassPool cp = ClassPool.getDefault(); CtClass cc = cp.get("test5.JIRA242$Hello"); CtMethod m = cc.getDeclaredMethod("say"); @@ -218,7 +218,7 @@ public class JvstTest5 extends JvstTestRoot { System.out.println(src); badClass.addMethod(CtMethod.make(src, badClass)); Class clazzz = badClass.toClass(); - Object obj = clazzz.newInstance(); // <-- falls here + Object obj = clazzz.getConstructor().newInstance(); // <-- falls here } public void test83StackmapWithArrayType() throws Exception { |