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

SPEC BUG: javax.sql.rowset.BaseRowSet: umbiguous/unclear spec

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6



      Name: sdR10048 Date: 10/22/2003


      Filed By : SPB JCK team (###@###.###)
      JDK : java full version "1.5.0-beta-b23"

      Problem description
      ===================
      protected void notifyCursorMoved()
      protected void notifyRowChanged()
      protected void notifyRowSetChanged() (3 ones)

          "When an application calls a method to move the cursor, that
           method moves the cursor and then calls this method internally. An
           application never invokes this method directly."

          Is it supposed to write :
          "It is supposed that when an application calls a method to move
           the cursor, that method moves the cursor and then calls this
           method internally. An application SHOULD NEVER (is not supposed
           to) invoke this method directly." ?

          Otherwise this information has a quite abstract style and this
          specification does permit to write an application which behaves
          differently.

      public void setNull(int?parameterIndex, int?sqlType, java.lang.String?typeName) throws java.sql.SQLException

          Ambiguous quotes:

          "This version of the method setNull should be used for parameters
          that are user-defined types or parameters of type REF. The following
          are user- defined types: STRUCT, DISTINCT, and JAVA_OBJECT, and named
          array types."

          (The assertion above says that you SHOULD NOT use this method for
          something except the designated types)

          "Although it is intended for user-defined and REF parameters, this
          method may be used to set a null parameter of any JDBC type."

          (And this one says that it is possible to use any type anyway)



      ======================================================================

            jbrucesunw Jonathan Bruce (Inactive)
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: