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)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment