diff options
Diffstat (limited to 'src/test/javassist/JvstTest4.java')
-rw-r--r-- | src/test/javassist/JvstTest4.java | 16 |
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()); + } + } + }); + } } |