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

Address additional javadoc bugs in JDBC 4 spec

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: cts_5.0
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b94
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      1. java/sql/DataSet.java contains links like this:
         * <a href="Query.html"><code>Query</code></a> annotation whose method

      but there is no Query.html. Other 'annotations' are referenced like this:

       at least one column to uniquely identify the row using the
       * <code>ResultColumn</code> annotation's

      ie, no link, even though there actually are .html
      files for them, eg ResultColumn.html, so a link should probably
      be used. But there is no Query.java.


      2. If I look at the description for the Statement method execute(String sql, int[ ] columnIndexes), it states that the array contains the indexes of the columns in the target table that contain the auto-generated keys that should be made available. The Connection method prepareStatement(String sql, int[ ] columnIndexes) also contains that statement. However if I look at the Statement method executeUpdate(String sql, int[ ] columnIndexes), it does not specify what the indexes refer to. I presume it is the same as the execute and prepareStatment methods. The array contains the indexes of the columns as they are defined in the table. I believe the statement that defines what the indexes refer to should be added to the executeUpdate method’s description.

      3. Add to all setXXX SQLException: if parameterIndex does not correspond to a parameter marker in the SQL statement; to PreparedStatement, CallableStatement, ResultSet
      Clarifying how primitive arrays are handled via Array.getArray is implementation defined.
      Addressed getAttributes() refering to columns vs attribute in certain descritions such as items 16 and 17

        Attachments

          Activity

            People

            Assignee:
            lancea Lance Andersen
            Reporter:
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: