Uploaded image for project: 'Commons DbUtils'
  1. Commons DbUtils
  2. DBUTILS-32

Tests fail to build under 1.6, and warning while compiling source

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Labels:
      None

      Description

      test:compile:
      [javac] Compiling 20 source files to /home/hen/apache/jakarta/commons-proper/dbutils/target/test-classes
      /home/hen/apache/jakarta/commons-proper/dbutils/src/test/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSetTest.java:841: org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSetMockBlob is not abstract and does not override abstract method getBinaryStream(long,long) in java.sql.Blob
      class SqlNullCheckedResultSetMockBlob implements Blob {
      ^
      /home/hen/apache/jakarta/commons-proper/dbutils/src/test/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSetTest.java:882: org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSetMockClob is not abstract and does not override abstract method getCharacterStream(long,long) in java.sql.Clob
      class SqlNullCheckedResultSetMockClob implements Clob {

      and warning of:

      [javac] Compiling 20 source files to /home/hen/apache/jakarta/commons-proper/dbutils/target/classes
      /home/hen/apache/jakarta/commons-proper/dbutils/src/java/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSet.java:372: warning: non-varargs call of varargs method with inexact argument type for last parameter;
      cast to java.lang.Object for a varargs call
      cast to java.lang.Object[] for a non-varargs call and to suppress this warning
      ? nullMethod.invoke(this, null)

        Attachments

        1. patch-DBUTILS-32.txt
          2 kB
          Alan B. Canon
        2. patch.txt
          2 kB
          Alan B. Canon

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bayard Henri Yandell
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: