NOTE: The test-case was actually derived by Tomek Grabiec.
Signed-off-by: Vegard Nossum <[email protected]>
---
Makefile | 1 +
.../jvm/VirtualAbstractInterfaceMethodTest.java | 29 ++++++++++++++++++++
regression/run-suite.sh | 1 +
3 files changed, 31 insertions(+), 0 deletions(-)
create mode 100644 regression/jvm/VirtualAbstractInterfaceMethodTest.java
diff --git a/Makefile b/Makefile
index a22a84f..68a89e9 100644
--- a/Makefile
+++ b/Makefile
@@ -300,6 +300,7 @@ REGRESSION_TEST_SUITE_CLASSES = \
regression/jvm/SynchronizationTest.java \
regression/jvm/TestCase.java \
regression/jvm/TrampolineBackpatchingTest.java \
+ regression/jvm/VirtualAbstractInterfaceMethodTest.java \
regression/sun/misc/UnsafeTest.java
JASMIN_REGRESSION_TEST_SUITE_CLASSES = \
diff --git a/regression/jvm/VirtualAbstractInterfaceMethodTest.java
b/regression/jvm/VirtualAbstractInterfaceMethodTest.java
new file mode 100644
index 0000000..05eccae
--- /dev/null
+++ b/regression/jvm/VirtualAbstractInterfaceMethodTest.java
@@ -0,0 +1,29 @@
+package jvm;
+
+/**
+ * @author Tomek Grabiec <[email protected]>
+ * @author Vegard Nossum <[email protected]>
+ */
+public class VirtualAbstractInterfaceMethodTest 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..55f0e88 100755
--- a/regression/run-suite.sh
+++ b/regression/run-suite.sh
@@ -99,6 +99,7 @@ if [ -z "$CLASS_LIST" ]; then
run_java jvm.SynchronizationTest 0
run_java jvm.TrampolineBackpatchingTest 0
run_java jvm.SubroutineTest 0
+ run_java jvm.VirtualAbstractInterfaceMethodTest 0
run_java jvm.WideTest 0
run_java sun.misc.UnsafeTest 0
else
--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel