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

javax.sql.rowset.BaseRowSet.setConcurrency: spec unclear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 5.0
    • docs
    • beta
    • sparc
    • solaris_2.6
    • Verified

      Name: sdR10048 Date: 08/28/2003


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

      Specification excerpt:
      ======================
      --------- J2SE API spec v.1.5 ---------
          public void setConcurrency(int concurrency)

           Sets the concurrency for this RowSet object to
           the specified concurrency. The default concurrency is
           ResultSet.CONCUR_UPDATABLE.

           @param concurrency one of the following constants:
                              ResultSet.CONCUR_READ_ONLY or
                              ResultSet.CONCUR_UPDATABLE
      ---------- end-of-excerpt ---------------

      Problem description
      ===================
      The spec for this method does not state the expected
      behaviour if 'concurrency' is not one of two designated ints.

      The API Spec Requirements says
      (http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method):

      "Method Specification
       This section applies to Java methods and constructors.
       Each method and constructor specification must include:
       . . .
       Range of Valid Argument Values - Specify all valid and invalid values
       for each argument, including expected behavior for invalid input
       value or range of values. See example.

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

            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: