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

Example in java.sql.ConnectionBuilder spec doesn't comply to its actual API

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9, 10, 11, 12, 13
    • Fix Version/s: 14
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b03

      Description

      Code example in top-level specification https://docs.oracle.com/en/java/javase/12/docs/api/java.sql/java/sql/ConnectionBuilder.html
      has the following:
      ================
      Connection con = ds.createConnectionBuilder()
                             .user("rafa")
                             .password("tennis")
                             .setShardingKey(shardingKey)
                             .setSuperShardingKey(superShardingKey)
                             .build();
      ================
      while the actual ConnectionBuilder API contains methods called just "shardingKey​(ShardingKey)" and "superShardingKey​(ShardingKey)"

      This mismatch is present since the addition of ConnectionBuilder class - https://docs.oracle.com/javase/9/docs/api/java/sql/ConnectionBuilder.html

        Attachments

          Activity

            People

            • Assignee:
              lancea Lance Andersen
              Reporter:
              dbessono Dmitry Bessonov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: