Derby
  1. Derby
  2. DERBY-5262

Running JUnit tests with Java 1.4.2 fails if the package private tests are on the classpath

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.9.1.0
    • Fix Version/s: 10.8.2.2, 10.9.1.0
    • Component/s: Test
    • Labels:
      None

      Description

      Running tests with Java 1.4.2 with the package private tests (pptesting) on the classpath results in:
      Failed to invoke suite():java.lang.UnsupportedClassVersionError: org/apache/derby/PackagePrivateTestSuite (Unsupported major.minor version 49.0)

        Activity

        Hide
        Kristian Waagan added a comment -

        Closing issue.

        Show
        Kristian Waagan added a comment - Closing issue.
        Hide
        Kristian Waagan added a comment -

        The regression tests ran cleanly.
        Committed to trunk with revision 1132860 and back-ported to 10.8 with revision 1132861.

        Show
        Kristian Waagan added a comment - The regression tests ran cleanly. Committed to trunk with revision 1132860 and back-ported to 10.8 with revision 1132861.
        Hide
        Kristian Waagan added a comment -

        Attaching patch 1a, which adds the utility method BaseTestCase.getClassVersionMajor() and makes use of this method in SecurityManagerSetup to avoid loading a class the JVM can't understand.

        I intend to commit this patch as soon as the regression tests finish.
        Patch ready for review.

        Show
        Kristian Waagan added a comment - Attaching patch 1a, which adds the utility method BaseTestCase.getClassVersionMajor() and makes use of this method in SecurityManagerSetup to avoid loading a class the JVM can't understand. I intend to commit this patch as soon as the regression tests finish. Patch ready for review.

          People

          • Assignee:
            Kristian Waagan
            Reporter:
            Kristian Waagan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development