harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r563768 - in /harmony/enhanced/drlvm/trunk/src/test/regression/H4579: ./ neg.j run.test.xml test.java
Date Wed, 08 Aug 2007 06:26:27 GMT
Author: mloenko
Date: Tue Aug  7 23:26:26 2007
New Revision: 563768

URL: http://svn.apache.org/viewvc?view=rev&rev=563768
Log:
regression test for HARMONY-4579 (crash of jdtcoremodel suite 'dom' from EUT3.3)

Added:
    harmony/enhanced/drlvm/trunk/src/test/regression/H4579/
    harmony/enhanced/drlvm/trunk/src/test/regression/H4579/neg.j   (with props)
    harmony/enhanced/drlvm/trunk/src/test/regression/H4579/run.test.xml   (with props)
    harmony/enhanced/drlvm/trunk/src/test/regression/H4579/test.java   (with props)

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H4579/neg.j
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H4579/neg.j?view=auto&rev=563768
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H4579/neg.j (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H4579/neg.j Tue Aug  7 23:26:26 2007
@@ -0,0 +1,33 @@
+.class public org/apache/harmony/drlvm/tests/regression/h4579/neg
+.super java.security.SecureClassLoader
+.method public <init>()V
+   aload_0
+   invokespecial java.security.SecureClassLoader/<init>()V
+   return
+.end method
+
+;
+; super class (SecureClassLoader) is loaded by different (bootstrap) classloader than the
current class
+; super of the super class (ClassLoader) has protected method
+; try to invoke it with invokevirtual
+;
+;
+.method public static test()V
+   ; obtain some classloader
+   ldc	"org.apache.harmony.drlvm.tests.regression.h4579.neg"
+   invokestatic	java/lang/Class/forName(Ljava/lang/String;)Ljava/lang/Class;
+
+   invokevirtual java/lang/Class/getClassLoader()Ljava/lang/ClassLoader;
+
+   ; try to invoke its protected method
+   invokevirtual java/lang/ClassLoader/getPackages()[Ljava/lang/Package;
+   return
+.end method
+
+
+.method public static main([Ljava/lang/String;)V
+   invokestatic	org/apache/harmony/drlvm/tests/regression/h4579/neg/test()V
+   return
+.end method
+
+

Propchange: harmony/enhanced/drlvm/trunk/src/test/regression/H4579/neg.j
------------------------------------------------------------------------------
    svn:executable = *

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H4579/run.test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H4579/run.test.xml?view=auto&rev=563768
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H4579/run.test.xml (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H4579/run.test.xml Tue Aug  7 23:26:26
2007
@@ -0,0 +1,8 @@
+<project name="RUN HARMONY-4579 Regression Test">
+    <target name="run-test">
+        <run-junit-test 
+            test="org.apache.harmony.drlvm.tests.regression.h4579.test">
+        </run-junit-test>
+    </target>
+</project>
+

Propchange: harmony/enhanced/drlvm/trunk/src/test/regression/H4579/run.test.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H4579/test.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H4579/test.java?view=auto&rev=563768
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H4579/test.java (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H4579/test.java Tue Aug  7 23:26:26 2007
@@ -0,0 +1,14 @@
+package org.apache.harmony.drlvm.tests.regression.h4579;
+
+import junit.framework.TestCase;
+
+public class test extends TestCase {
+    
+    public void testNeg() throws Exception {
+        try {
+            neg.test();
+            fail("VerifyError expected");
+        } catch( VerifyError e) {
+        }
+    }
+}
\ No newline at end of file

Propchange: harmony/enhanced/drlvm/trunk/src/test/regression/H4579/test.java
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message