Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3588

suites.All fails to run on Jvm 1.5 when built with JDK 1.5 (Failed to invoke suite(): .jdbc4._Suite)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.4.1.3, 10.5.1.1
    • Fix Version/s: 10.4.2.0, 10.5.1.1
    • Component/s: Test
    • Labels:
      None
    • Environment:
    • Bug behavior facts:
      Regression Test Failure

      Description

      I discovered that since svn r633968 - 2008-03-05 19:45:52 CET, .suites.All has failed with
      'Failed to invoke suite():java.lang.ClassNotFoundException: org.apache.derbyTesting.functionTests.tests.jdbc4._Suite' in my test runs
      where I have built with JDK 1.5, i.e. have 'j15lib=/usr/local/java/jdk1.5/jre/lib' in ~/ant.properties.

      I think this is related to svn r633658 which removed the test for 'JDBC.vmSupportsJDBC4()' when doing
      'suite.addTest(addSuiteByReflection("org.apache.derbyTesting.functionTests.tests.jdbc4._Suite"));'.

      I added the 'if (JDBC.vmSupportsJDBC4())

      {....}

      ' again and am now runnning .suites.All on one of my 1.5 test platforms.

      An alternative might be to catch 'ClassNotFoundException' in 'addSuiteByReflection()'?

        Attachments

        1. BuildOn1.5_jdbc4._Suite_alt2.diff.txt
          0.6 kB
          Ole Solberg
        2. suites.All_BuiltW15RunOn1.6.txt
          707 kB
          Ole Solberg

          Activity

            People

            • Assignee:
              olesolberg Ole Solberg
              Reporter:
              olesolberg Ole Solberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: