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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        18h 50m 1 Kristian Waagan 07/Jun/11 05:48
        Resolved Resolved Closed Closed
        9d 5h 39m 1 Kristian Waagan 16/Jun/11 11:27
        Gavin made changes -
        Workflow jira [ 12615657 ] Default workflow, editable Closed status [ 12801092 ]
        Myrna van Lunteren made changes -
        Fix Version/s 10.8.2.2 [ 12317968 ]
        Fix Version/s 10.8.2.0 [ 12317955 ]
        Myrna van Lunteren made changes -
        Fix Version/s 10.8.2.0 [ 12317955 ]
        Fix Version/s 10.8.1.6 [ 12316676 ]
        Knut Anders Hatlen made changes -
        Fix Version/s 10.8.1.5 [ 12316676 ]
        Fix Version/s 10.8.1.4 [ 12316500 ]
        Kristian Waagan made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Kristian Waagan added a comment -

        Closing issue.

        Show
        Kristian Waagan added a comment - Closing issue.
        Kristian Waagan made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Issue & fix info [Patch Available]
        Fix Version/s 10.8.1.4 [ 12316500 ]
        Fix Version/s 10.9.0.0 [ 12316344 ]
        Resolution Fixed [ 1 ]
        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.
        Kristian Waagan made changes -
        Field Original Value New Value
        Attachment derby-5262-1a-secmansetup_check_class_version.diff [ 12481555 ]
        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.
        Kristian Waagan created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development