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

Test harness security policy prevents running DatabaseClassLoadingTest twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.11.1.1
    • 10.13.1.0
    • Test
    • None
    • Newcomer, Repro attached

    Description

      If I try to run DatabaseClassLoadingTest twice in a row, the second run
      immediately fails with a AccessControlException.

      To reproduce the problem:

      1) cd to a fresh empty directory

      2) java junit.textui.TestRunner org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest

      (test will pass)

      3) java junit.textui.TestRunner org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest

      (test will fail with an AccessControlException)

      It's possible that this is due to a problem with the security policy that the
      test harness includes for running the unit tests?

      I'll include the stack trace in a comment to this issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bryanpendleton Bryan Pendleton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: