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

javax.sql.rowset.RowSetMetaDataImpl.setColumnDisplaySize: spec unclear

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6



      Name: sdR10048 Date: 09/02/2003


      Filed By : SPB JCK team (###@###.###)
      JDK : java full version "1.5.0-beta-b16"


      Specification excerpt:
      ======================
      --------- J2SE API spec v.1.5 ---------
      ...
      public void setColumnDisplaySize(int columnIndex,
                                       int size)
                                throws java.sql.SQLException
      Sets the normal maximum number of chars in the designated column to the given number.

      Specified by:
      setColumnDisplaySize in interface javax.sql.RowSetMetaData
      Parameters:
      columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
      size - the maximum size of the column in chars
      Throws:
      SQLException - if a database access error occurs or the given column number is out of bounds
      java.sql.SQLException
      ...
      ---------- end-of-excerpt ---------------

      Problem description
      ===================
      The spec does not say about the expected behaviour in case 'size' < 0.
      I believe this is the special case. And should be specified.

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

      Name: sdR10048 Date: 09/02/2003

      The same problem with:
      RowSetMetaDataImpl.setPrecision(, negative int)
      RowSetMetaDataImpl.setScale(, negative int)


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

            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: