Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2080084 | 1.0 | Jonathan Bruce | P2 | Closed | Fixed | 1.0 |
Name: ssR10000 Date: 02/09/2004
Filed By : SPB JCK team (###@###.###)
JDK :
JCK : 1.5
Platform[s] : Solaris
switch/Mode :
JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
Failing Test [s] : N/A
Problem description
===================
There is some problems with SerialArray class:
1. Wrong constructor:
public SerialArray(Array array, Map map) throws SerialException, SQLException {
....
case java.sql.Types.DATALINK:
for (int i = 0; i < len; i++) {
elements[i] = new SerialDatalink((URL)elements[i]);
}
case java.sql.Types.JAVA_OBJECT:
for (int i = 0; i < len; i++) {
elements[i] = new SerialJavaObject((URL)elements[i]);
//SSW: ^^^^^^^^^^^
//SSW: It is looks like (Object)element more suitable here.
//SSW: In opposite case we have the ClassCastException.
}
....
2. Same problem with the next one:
public SerialArray(Array array) throws SerialException, SQLException
3. The "Map map" parameters in some methods still not used.
Additional comments:
====================
It is difficult to write correct JCK tests based on current spec/impl.
======================================================================
- backported by
-
JDK-2080084 The class javax.sql.rowset.serial.SerialArray is still too buggy
-
- Closed
-
- relates to
-
JDK-4923223 The class javax.sql.rowset.serial.SerialArray is too buggy
-
- Resolved
-
-
JDK-5027950 JCK1.5-runtime api/javax_sql/rowset/serial/SerialArray/index.html#Main fails
-
- Closed
-