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

Various Typos in SQL Method Documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 13
    • None
    • core-libs
    • None
    • b03

      Typos with {@code} tag

      https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/PreparedStatement.html#setClob(int,java.io.Reader)

      diff -r abe21b82ff7c src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java
      --- a/src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java Mon Dec 24 12:18:40 2018 +0530
      +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/internal/SyncResolverImpl.java Mon Dec 24 12:04:57 2018 -0800
      @@ -1,5 +1,5 @@
       /*
      - * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
      + * Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
        * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
        *
        * This code is free software; you can redistribute it and/or modify it
      @@ -1064,7 +1064,7 @@
       
           /**
            * Returns the insert row or the current row of this
      - * {@code CachedRowSetImpl}object.
      + * {@code CachedRowSetImpl} object.
            *
            * @return the {@code Row} object on which this {@code CachedRowSetImpl}
            * objects's cursor is positioned
      @@ -4326,7 +4326,7 @@
            *
            * @param columnName a {@code String} object that must match the
            * SQL name of a column in this rowset, ignoring case
      - * @param c the new column {@code Clob}value
      + * @param c the new column {@code Clob} value
            * @throws SQLException if (1) the given column name does not match the
            * name of a column in this rowset, (2) the cursor is not on
            * one of this rowset's rows or its insert row, or (3) this


      diff -r abe21b82ff7c src/java.sql.rowset/share/classes/com/sun/rowset/JdbcRowSetImpl.java
      --- a/src/java.sql.rowset/share/classes/com/sun/rowset/JdbcRowSetImpl.java Mon Dec 24 12:18:40 2018 +0530
      +++ b/src/java.sql.rowset/share/classes/com/sun/rowset/JdbcRowSetImpl.java Mon Dec 24 12:04:57 2018 -0800
      @@ -1,5 +1,5 @@
       /*
      - * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
      + * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
        * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
        *
        * This code is free software; you can redistribute it and/or modify it
      @@ -1133,7 +1133,7 @@
            * as a stream of Unicode characters.
            * The value can then be read in chunks from the
            * stream. This method is particularly
      - * suitable for retrieving large{@code LONGVARCHAR}values. The JDBC driver will
      + * suitable for retrieving large{@code LONGVARCHAR} values. The JDBC driver will
            * do any necessary conversion from the database format into Unicode.
            * The byte format of the Unicode stream must be Java UTF-8,
            * as specified in the Java virtual machine specification.
      @@ -6188,7 +6188,7 @@
          * @param parameterIndex index of the first parameter is 1, the second is 2, ...
          * @param reader An object that contains the data to set the parameter value to.
          * @throws SQLException if a database access error occurs, this method is called on
      - * a closed {@code PreparedStatement}or if parameterIndex does not correspond to a parameter
      + * a closed {@code PreparedStatement} or if parameterIndex does not correspond to a parameter
          * marker in the SQL statement
          *
          * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method

            rcalnan Roger Calnan
            rcalnan Roger Calnan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: