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

Unapproved changes in the Connection interface

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description



      Name: asR10047 Date: 10/17/2000


      In the JDK-Merlin new methods have been added into java.sql.Connection interface.
      These changes have not been submitted as a CCC request and have not been approved.
      Due to these changes the JCK tests for java.sql fail to compile.

      The following methods have been added:

       void setHoldability(int i)
       int getHoldability()
       Savepoint setSavepoint() throws SQLException
       Savepoint setSavepoint(String name) throws SQLException
       void rollback(Savepoint savepoint) throws SQLException
       void releaseSavepoint(Savepoint savepoint) throws SQLException
       Statement createStatement(int resultSetType,
                      int resultSetConcurrency, int resultSetHoldability)
                                                          throws SQLException
       PreparedStatement prepareStatement(String sql, int resultSetType,
                      int resultSetConcurrency, int resultSetHoldability)
                                                          throws SQLException
       PreparedStatement prepareStatement(String sql, int flag)
                                                          throws SQLException
       PreparedStatement prepareStatement(String sql,
                                                int[] columnIndexes)
                                                      throws SQLException
       PreparedStatement prepareStatement(String sql,
                                                String[] columnNames)
                                                      throws SQLException
       CallableStatement prepareCall(String sql, int resultSetType,
                      int resultSetConcurrency, int resultSetHoldability)
                                                          throws SQLException

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

      ###@###.### 2000-11-03

      Due to this change one of the source files for JCK test api/java_sql/DriverManager/descriptions.html#DriverManager
      fails to compile. Below is the output from compiler:
      ---------------------------------------------------
      --> java -version
      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b39)
      Java HotSpot(TM) Client VM (build 1.4beta-B39, mixed mode)

      --> javac StubConnection.java
      StubConnection.java:5: javasoft.sqe.tests.api.java.sql.DriverManager.StubConnection should be declared abstract; it does not define setHoldability(int) in javasoft.sqe.tests.api.java.sql.DriverManager.StubConnection
      public class StubConnection implements Connection {
             ^
      1 error



        Attachments

          Activity

            People

            Assignee:
            jellissunw Jon Ellis (Inactive)
            Reporter:
            anssunw Ans Ans (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: