aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test3/InvokeIntf.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2011-08-31 10:29:34 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2011-08-31 10:29:34 +0000
commitd72870bfb6b09927e10944bdd129ce18dfcf7366 (patch)
tree27f56e4d1523a8cecc8976df60155e6b8429e504 /src/test/test3/InvokeIntf.java
parent76a1cba9c433e8242bb6648e72b3ed43c7a4995a (diff)
downloadjavassist-d72870bfb6b09927e10944bdd129ce18dfcf7366.tar.gz
javassist-d72870bfb6b09927e10944bdd129ce18dfcf7366.zip
JvstTest test case.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@589 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/test/test3/InvokeIntf.java')
-rw-r--r--src/test/test3/InvokeIntf.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/test3/InvokeIntf.java b/src/test/test3/InvokeIntf.java
new file mode 100644
index 00000000..d1811ce6
--- /dev/null
+++ b/src/test/test3/InvokeIntf.java
@@ -0,0 +1,30 @@
+package test3;
+
+interface InvokedIntf {
+ Object clone();
+}
+
+interface InvokedIntf2 extends InvokedIntf {
+}
+
+class InvokedIntf3 implements InvokedIntf2 {
+ public Object clone() {
+ try {
+ return super.clone();
+ }
+ catch (Exception e) {
+ return null;
+ }
+ }
+}
+
+public class InvokeIntf {
+ public int test() {
+ doit(new InvokedIntf3());
+ return 7;
+ }
+ public void doit(InvokedIntf2 ii) {
+ ii.clone();
+ ii.toString();
+ }
+}