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

diff --git a/Makefile b/Makefile
index 941acb5..f9e130a 100644
--- a/Makefile
+++ b/Makefile
@@ -249,6 +249,7 @@ REGRESSION_TEST_SUITE_CLASSES = \
        regression/jvm/GetstaticPatchingTest.java \
        regression/jvm/IntegerArithmeticExceptionsTest.java \
        regression/jvm/IntegerArithmeticTest.java \
+       regression/jvm/InterfaceFieldInheritanceTest.java \
        regression/jvm/InterfaceInheritanceTest.java \
        regression/jvm/InvokeinterfaceTest.java \
        regression/jvm/InvokestaticPatchingTest.java \
diff --git a/regression/jvm/InterfaceFieldInheritanceTest.java 
b/regression/jvm/InterfaceFieldInheritanceTest.java
new file mode 100644
index 0000000..d2dbf2b
--- /dev/null
+++ b/regression/jvm/InterfaceFieldInheritanceTest.java
@@ -0,0 +1,14 @@
+package jvm;
+
+public class InterfaceFieldInheritanceTest extends TestCase {
+    private interface A {
+        Object x = "foo";
+    }
+
+    private static class B implements A {
+    }
+
+    public static void main(String[] args) {
+        assertTrue(B.x.equals("foo"));
+    }
+}
diff --git a/regression/run-suite.sh b/regression/run-suite.sh
index e34134b..239ce33 100755
--- a/regression/run-suite.sh
+++ b/regression/run-suite.sh
@@ -66,6 +66,7 @@ if [ -z "$CLASS_LIST" ]; then
     run_java jvm.GetstaticPatchingTest 0
     run_java jvm.IntegerArithmeticExceptionsTest 0
     run_java jvm.IntegerArithmeticTest 0
+    run_java jvm.InterfaceFieldInheritanceTest 0
     run_java jvm.InterfaceInheritanceTest 0
     run_java jvm.InvokeinterfaceTest 0
     run_java jvm.InvokestaticPatchingTest 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