]> source.dussan.org Git - javassist.git/commitdiff
fixes a bug of test5.JvstTest5.testInvalidCastWithDollar
authorchibash <chiba@javassist.org>
Tue, 23 Feb 2016 09:54:20 +0000 (18:54 +0900)
committerchibash <chiba@javassist.org>
Tue, 23 Feb 2016 09:54:20 +0000 (18:54 +0900)
src/test/javassist/JvstTest5.java
src/test/test5/JavassistInvalidCastTest.java [new file with mode: 0644]

index 773ab8b6982720ace593b2e527d7de7b1eba383f..eff7b45144bf86a33c2edae1bc014ca62b2c737a 100644 (file)
@@ -139,7 +139,7 @@ public class JvstTest5 extends JvstTestRoot {
     }
 
     public void testInvalidCastWithDollar() throws Exception {
-        String code = "{ new JavassistInvalidCastTest().inspectReturn((Object) ($w) $_); } ";
+        String code = "{ new test5.JavassistInvalidCastTest().inspectReturn((Object) ($w) $_); } ";
         CtClass c = sloader.get("test5.InvalidCastDollar");
         for (CtMethod method : c.getDeclaredMethods())
             method.insertAfter(code);
diff --git a/src/test/test5/JavassistInvalidCastTest.java b/src/test/test5/JavassistInvalidCastTest.java
new file mode 100644 (file)
index 0000000..aa9682b
--- /dev/null
@@ -0,0 +1,6 @@
+package test5;
+
+public class JavassistInvalidCastTest {
+    public void inspectReturn(String str) {}
+    public void inspectReturn(Object obj) {}
+}