[jira] [Created] (FLINK-12316) JDBCFullTest fails on Java 9

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-12316) JDBCFullTest fails on Java 9

Shang Yuanchun (Jira)
Chesnay Schepler created FLINK-12316:
----------------------------------------

             Summary: JDBCFullTest fails on Java 9
                 Key: FLINK-12316
                 URL: https://issues.apache.org/jira/browse/FLINK-12316
             Project: Flink
          Issue Type: Sub-task
          Components: Connectors / JDBC, Tests
    Affects Versions: 1.9.0
            Reporter: Chesnay Schepler
            Assignee: Chesnay Schepler
             Fix For: 1.9.0


The test is checking for an exception message which contains the class names of Strings and such, which vary between java versions.

{code}
13:44:31.313 [ERROR]   JDBCFullTest.testEnrichedClassCastException
Expected: (an instance of java.lang.ClassCastException and exception with message a string containing "java.lang.String cannot be cast to java.lang.Double, field index: 3, field value: 11.11.")
     but: exception with message a string containing "java.lang.String cannot be cast to java.lang.Double, field index: 3, field value: 11.11." message was "java.base/java.lang.String cannot be cast to java.base/java.lang.Double, field index: 3, field value: 11.11."
Stacktrace was: java.lang.ClassCastException: java.base/java.lang.String cannot be cast to java.base/java.lang.Double, field index: 3, field value: 11.11.
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)