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

Address additional javadoc bugs in JDBC 4 spec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • cts_5.0
    • core-libs
    • b94
    • generic
    • generic
    • Not verified

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: