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?
======================================================================
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?
======================================================================