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

inconsistency in setUrl and setDataSourceName spec

XMLWordPrintable

    • rc
    • sparc
    • solaris_2.6
    • Verified

        Name: sdR10048 Date: 02/24/2004


        Filed By : SPB JCK team (###@###.###):
        JDK : 1.5.0-beta2-b37
        JCK : 1.5
        Platform[s] : Solaris
        JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
        Failing Test [s] :
        api/javax_sql/rowset/BaseRowSet/index.html#Options2[BaseRowSet2010]

        Specification excerpt:
        ======================
        --------- J2SE API spec v.1.5 ---------
        ...
        public void setUrl(String url)
                    throws SQLException
        ...
        Parameters:
        url - a String object that contains the JDBC URL that will be used to establish the
        connection to a database for this RowSet object; may be null but must not be an
        empty string
        ...
        public void setDataSourceName(String name)
                               throws SQLException
        ...
        Parameters:
        name - a String object with the name that can be supplied to a naming service based on JNDI technology to retrieve the DataSource object that can be used to get a connection; may be null

        ...
        ---------- end-of-excerpt ---------------

        Problem description
        ===================
        There is inconsistency in setUrl and setDataSourceName specification:

        Both methods does not allow an empty strings as input parameter but
        only setUrl javadoc specifies it.

        This causes JCK testcase
        api/javax_sql/rowset/BaseRowSet/index.html#Options2[BaseRowSet2010]
        to fail.

        JCK test source location:
        ==========================
        /java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests

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

              lancea Lance Andersen
              dsvsunw Dsv Dsv (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: