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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lancea Lance Andersen
                Reporter:
                sfelts Stephen Felts
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: