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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.4.1.3, 10.5.1.1
    • 10.4.2.0, 10.5.1.1
    • Test
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: