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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: None
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: