db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r764948 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/DatabaseClassLoadingTest.java
Date Tue, 14 Apr 2009 20:56:11 GMT
Author: rhillegas
Date: Tue Apr 14 20:56:10 2009
New Revision: 764948

URL: http://svn.apache.org/viewvc?rev=764948&view=rev
Log:
DERBY-4133: Disable testTableFunctionInJar on jdk 1.4 because the jar file it uses is compiled
at a higher byte code level.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/DatabaseClassLoadingTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/DatabaseClassLoadingTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/DatabaseClassLoadingTest.java?rev=764948&r1=764947&r2=764948&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/DatabaseClassLoadingTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/DatabaseClassLoadingTest.java
Tue Apr 14 20:56:10 2009
@@ -46,6 +46,8 @@
 import junit.framework.Test;
 import junit.framework.TestSuite;
 
+import org.apache.derby.iapi.services.info.JVMInfo;
+
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
 import org.apache.derbyTesting.junit.CleanDatabaseTestSetup;
 import org.apache.derbyTesting.junit.JDBC;
@@ -1000,6 +1002,10 @@
      */
     public void testTableFunctionInJar() throws SQLException, MalformedURLException
     {
+        // skip this test if vm is pre Java 5. This is because the jar file was
+        // compiled by a modern compiler and the jar file won't load on
+        // old vms.
+        if ( JVMInfo.J2ME || (JVMInfo.JDK_ID < JVMInfo.J2SE_15 ) ) { return; }
         
         String jarName = "EMC.DUMMY_VTI";
 



Mime
View raw message