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

The class javax.sql.rowset.serial.SerialArray is still too buggy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 5.0
    • core-libs
    • beta2
    • sparc
    • solaris_2.6



        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.

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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: