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

The class javax.sql.rowset.serial.SerialClob is too buggy

XMLWordPrintable

    • 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
        ===================
        This class is very similar to the SerialBlob so points 1,3,4 from 4991002 suitable for SerialClob.

        In addition:
        1. Following methods:
        ===========================================================
          /**
           * Retrieves a stream to be used to write Ascii characters to the
           * <code>CLOB</code> value that this <code>Clob</code> object represents,
           * starting at position <code>pos</code>.
           */
            public java.io.OutputStream setAsciiStream(long pos) throws SerialException {
                 ByteArrayOutputStream baoStream = new ByteArrayOutputStream((int)pos);
                 return (java.io.OutputStream)baoStream;
            }
            
            /**
             * Retrieves a stream to be used to write a stream of Unicode characters
             * to the <code>CLOB</code> value that this <code>Clob</code> object
             * represents, at position <code>pos</code>.
             */
            public java.io.Writer setCharacterStream(long pos) throws SerialException {
                CharArrayWriter caWriter = new CharArrayWriter((int)pos);
                return (java.io.Writer)caWriter;
            }
        ===========================================================

        return something that CANNOT be used to write to current SerialClob object.


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

              ahandasunw Amit Handa (Inactive)
              sswsunw Ssw Ssw (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: