You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2014/06/12 10:08:30 UTC
svn commit: r1602087 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java
Author: kahatlen
Date: Thu Jun 12 08:08:29 2014
New Revision: 1602087
URL: http://svn.apache.org/r1602087
Log:
DERBY-6613: StatementPoolingTest fails on JDK 9
Check for JDBC 4.2 support in the JVM (that is, Java 8 or higher)
instead of checking for Java 8.
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java?rev=1602087&r1=1602086&r2=1602087&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java Thu Jun 12 08:08:29 2014
@@ -183,7 +183,8 @@ public class StatementPoolingTest
final String simpleName = names[names.length -1];
if (JDBC.vmSupportsJDBC4() && !expectedName.endsWith("40")) {
- if ( isJava8() && expectedName.contains( "Statement" ) )
+ if (JDBC.vmSupportsJDBC42()
+ && expectedName.contains("Statement"))
{
expectedName += "42";
}