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

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

XMLWordPrintable

    • b03

      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

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

              Created:
              Updated:
              Resolved: