aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/javassist/JvstTest5.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/javassist/JvstTest5.java')
-rw-r--r--src/test/javassist/JvstTest5.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/javassist/JvstTest5.java b/src/test/javassist/JvstTest5.java
index 6deffcab..8e1ef8a7 100644
--- a/src/test/javassist/JvstTest5.java
+++ b/src/test/javassist/JvstTest5.java
@@ -135,4 +135,11 @@ public class JvstTest5 extends JvstTestRoot {
Object obj = make(cc.getName());
assertEquals(40271, invoke(obj, "run"));
}
+
+ public void testInvalidCastWithDollar() throws Exception {
+ String code = "{ new JavassistInvalidCastTest().inspectReturn((Object) ($w) $_); } ";
+ CtClass c = sloader.get("test5.InvalidCastDollar");
+ for (CtMethod method : c.getDeclaredMethods())
+ method.insertAfter(code);
+ }
}