db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-6613) StatementPoolingTest fails on JDK 9
Date Thu, 12 Jun 2014 08:08:01 GMT

     [ https://issues.apache.org/jira/browse/DERBY-6613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Knut Anders Hatlen updated DERBY-6613:
--------------------------------------

    Attachment: d6613-1a.diff

The test checks if it's running on Java 8, and expects to see the JDBC 4.2 implementation
classes if it is. Otherwise, it expects to see the JDBC 4.0 implementation classes.

On Java 9, it sees the JDBC 4.2 implementation classes, and fails because it's not running
on Java 8.

The test should check if it's running on Java 8 or higher instead of checking that it's running
on version 8 exactly.

The attached patch [^d6613-1a.diff] makes the suggested change to the test.

> StatementPoolingTest fails on JDK 9
> -----------------------------------
>
>                 Key: DERBY-6613
>                 URL: https://issues.apache.org/jira/browse/DERBY-6613
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.10.2.0
>            Reporter: Knut Anders Hatlen
>         Attachments: d6613-1a.diff
>
>
> {noformat}
> 1) testPoolingEnabledByCheckingImplementationDetails(org.apache.derbyTesting.functionTests.tests.jdbcapi.StatementPoolingTest)junit.framework.ComparisonFailure:
expected:<...calPreparedStatement[]> but was:<...calPreparedStatement[42]>
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.StatementPoolingTest.assertClassName(StatementPoolingTest.java:195)
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.StatementPoolingTest.testPoolingEnabledByCheckingImplementationDetails(StatementPoolingTest.java:132)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:118)
> 	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:440)
> 	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:457)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)
> 	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message