aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/javassist
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2015-05-25 02:37:05 +0900
committerchibash <chiba@javassist.org>2015-05-25 02:37:05 +0900
commitefae59551e3a95cf128fbac60b6fcfee4d2cf2ce (patch)
treedbc87d2214c61744f7fd87cff3c23cedab89dd01 /src/test/javassist
parentbbecd7c489662c68af12b0e56265d52b7b2a644d (diff)
downloadjavassist-efae59551e3a95cf128fbac60b6fcfee4d2cf2ce.tar.gz
javassist-efae59551e3a95cf128fbac60b6fcfee4d2cf2ce.zip
fixed a bug reported as JASSIST-246
Diffstat (limited to 'src/test/javassist')
-rw-r--r--src/test/javassist/JvstTest5.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/javassist/JvstTest5.java b/src/test/javassist/JvstTest5.java
index 124f585d..097dcd4d 100644
--- a/src/test/javassist/JvstTest5.java
+++ b/src/test/javassist/JvstTest5.java
@@ -53,4 +53,18 @@ public class JvstTest5 extends JvstTestRoot {
Object obj = make(cc.getName());
assertEquals(10, invoke(obj, "run"));
}
+
+ public void testJIRA246() throws Exception {
+ CtClass ctClass = sloader.makeClass("test5.JIRA246Test");
+ ctClass.addInterface(sloader.get(test5.JIRA246.Test.class.getName()));
+ String methodBody = "public void test() { defaultMethod(); }";
+ CtMethod ctMethod = CtMethod.make(methodBody, ctClass);
+ ctClass.addMethod(ctMethod);
+ }
+
+ public void testJIRA246b() throws Exception {
+ CtClass ctClass = sloader.get(test5.JIRA246.A.class.getName());
+ String src = "public void id() { get(); }";
+ CtMethod make = CtNewMethod.make(src, ctClass);
+ }
}