db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1028643 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
Date Fri, 29 Oct 2010 08:41:11 GMT
Author: kahatlen
Date: Fri Oct 29 08:41:11 2010
New Revision: 1028643

URL: http://svn.apache.org/viewvc?rev=1028643&view=rev
Log:
DERBY-4867: Update BaseTestCase.isSunJVM() to accept Oracle

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java?rev=1028643&r1=1028642&r2=1028643&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Fri Oct
29 08:41:11 2010
@@ -559,8 +559,9 @@ public abstract class BaseTestCase
     }
 
     public static final boolean isSunJVM() {
-        return ("Sun Microsystems Inc.".equals(
-                getSystemProperty("java.vendor")));
+        String vendor = getSystemProperty("java.vendor");
+        return "Sun Microsystems Inc.".equals(vendor) ||
+                "Oracle Corporation".equals(vendor);
     }
     
     public static final boolean isIBMJVM() {



Mime
View raw message