aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/javassist
diff options
context:
space:
mode:
authorShigeru Chiba <chiba@chibas.net>2014-07-22 11:12:13 +0900
committerShigeru Chiba <chiba@chibas.net>2014-07-22 11:12:13 +0900
commit42238e4510ecc198a42ca902b94a95b6662c155f (patch)
tree058dc10f3cbf0abaf95445812851970cae6b3e7a /src/test/javassist
parent63403c46a523b4cef3ccf42c481966176ea50335 (diff)
parentb510f4c43b12a283294718e906a7502958f71cd6 (diff)
downloadjavassist-42238e4510ecc198a42ca902b94a95b6662c155f.tar.gz
javassist-42238e4510ecc198a42ca902b94a95b6662c155f.zip
Merge pull request #11 from jkaving/JASSIST-220
Fix for JASSIST-220
Diffstat (limited to 'src/test/javassist')
-rw-r--r--src/test/javassist/JvstTest4.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/javassist/JvstTest4.java b/src/test/javassist/JvstTest4.java
index f8994cd7..6ea33308 100644
--- a/src/test/javassist/JvstTest4.java
+++ b/src/test/javassist/JvstTest4.java
@@ -980,4 +980,20 @@ public class JvstTest4 extends JvstTestRoot {
assertEquals("i", cp.getUtf8Info(attr.name(0)));
assertEquals("s", cp.getUtf8Info(attr.name(1)));
}
+
+ // JIRA JASSIST-220
+ public void testStaticInterfaceMethods() throws Exception {
+ CtClass cc = sloader.get("test4.JIRA220");
+
+ cc.getMethod("foo", "()V").instrument(new ExprEditor() {
+ @Override
+ public void edit(MethodCall m) throws CannotCompileException {
+ try {
+ m.getClassName();
+ } catch (Exception e) {
+ fail(e.getMessage());
+ }
+ }
+ });
+ }
}