NOTE: The test-case was actually derived by Tomek Grabiec.

Signed-off-by: Vegard Nossum <vegard.nos...@gmail.com>
---
 Makefile                                       |    1 +
 regression/jvm/MirandaInterfaceMethodTest.java |   29 ++++++++++++++++++++++++
 regression/run-suite.sh                        |    1 +
 3 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 regression/jvm/MirandaInterfaceMethodTest.java

diff --git a/Makefile b/Makefile
index 9894400..d71849b 100644
--- a/Makefile
+++ b/Makefile
@@ -282,6 +282,7 @@ REGRESSION_TEST_SUITE_CLASSES = \
        regression/jvm/LongArithmeticTest.java \
        regression/jvm/MethodInvocationAndReturnTest.java \
        regression/jvm/MethodInvocationExceptionsTest.java \
+       regression/jvm/MirandaInterfaceMethodTest.java \
        regression/jvm/MultithreadingTest.java \
        regression/jvm/ObjectArrayTest.java \
        regression/jvm/ObjectCreationAndManipulationExceptionsTest.java \
diff --git a/regression/jvm/MirandaInterfaceMethodTest.java 
b/regression/jvm/MirandaInterfaceMethodTest.java
new file mode 100644
index 0000000..d1df5b7
--- /dev/null
+++ b/regression/jvm/MirandaInterfaceMethodTest.java
@@ -0,0 +1,29 @@
+package jvm;
+
+/**
+ * @author Tomek Grabiec <tgrab...@gmail.com>
+ * @author Vegard Nossum <vegard.nos...@gmail.com>
+ */
+public class MirandaInterfaceMethodTest extends TestCase {
+    private static interface X {
+        public void x();
+    };
+
+    private static abstract class A implements X {
+    };
+
+    private static boolean ok = false;
+
+    private static class B extends A {
+        public void x() {
+            ok = true;
+        }
+    };
+
+    public static void main(String[] args) {
+        A a = new B();
+        a.x();
+
+        assertTrue(ok);
+    }
+}
diff --git a/regression/run-suite.sh b/regression/run-suite.sh
index c807e33..9b1f728 100755
--- a/regression/run-suite.sh
+++ b/regression/run-suite.sh
@@ -80,6 +80,7 @@ if [ -z "$CLASS_LIST" ]; then
     run_java jvm.LongArithmeticTest 0
     run_java jvm.MethodInvocationAndReturnTest 0
     run_java jvm.MethodInvocationExceptionsTest 0
+    run_java jvm.MirandaInterfaceMethodTest 0
     run_java jvm.MultithreadingTest 0
     run_java jvm.ObjectArrayTest 0
     run_java jvm.ObjectCreationAndManipulationExceptionsTest 0
-- 
1.6.0.4


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to