Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8147802

New JDBC API's don't allow for class that implements Connection and XAConnection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • None
    • core-libs
    • None

      Unlike earlier enhancements to the JDBC API, the new JDBC methods in JD9 were introduced in a way such that a single class cannot implement Connection and XAConnection, and also DataSource and XADataSource.

      myfile.java:40: error: class weblogic.jdbc.wrapper.XAConnection inherits unrelated defaults for setShardingKey(ShardingKey) from types javax.sql.XAConnection and Connection

      myfile2.java:11: error: class AbstractXADataSource inherits unrelated defaults for createShardingKeyBuilder() from types XADataSource and DataSource

            lancea Lance Andersen
            sfelts Stephen Felts (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: