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

javax.sql.rowset.BaseRowSet: spec ambiguity

XMLWordPrintable

    • b59
    • sparc
    • solaris_2.6

      Name: sdR10048 Date: 06/15/2004


      Filed By : SPB JCK team (###@###.###)
      JDK : build 1.5.0-beta3-b55
      JCK : 1.5
      JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
      Failing Test [s] :
      api/javax_sql/rowset/BaseRowSet/index.html#Params1[BaseRowSet0008]


      Specification excerpt:
      ======================
      --------- J2SE API spec v.1.5 ---------
      ...
      The new spec says:
      --- cut ---
      public void setArray(int parameterIndex,
                           Array array)
                    throws SQLException
      ...
      Parameters:
      ...
      array - an Array object representing an SQL ARRAY value; cannot be null. The Array object passed to this method must return a non-null Object for all getArray() method calls. A null value will cause a SQLException to be thrown.
      Throws:
      SQLException - if an error occurs; the parameter index is out of bounds or the ARRAY is null
      --- cut ---
      ---------- end-of-excerpt ---------------

      Problem description
      ===================
      Here is the ambiguity:
      / array - an Array object representing an SQL ARRAY value;
        cannot be null. The Array object passed to this method
        must return a non-null Object for all getArray() method calls.
        A null value will cause a SQLException to be thrown. /

        ^^^^^^^^^^^^ - which one "null value": array == null || array.getArray() == null?
         
      ======================================================================

            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: