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

There are quite a few instances in Derby plan exporter and test code where PrivilegedActionException is thrown instead of the unwrapped exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.7.1.1
    • Fix Version/s: None
    • Component/s: Tools
    • Urgency:
      Normal
    • Issue & fix info:
      Newcomer

      Description

      In working on DERBY-4812, I noticed the plan exporter tool and some tests also throw PrivilegedActionException instead of the underlying exception. These should be examined, but I think generally we should throw the unwrapped exception.

      >grep 'throws PrivilegedActionException' `find java -name '*.java'`

      ava/testing/org/apache/derbyTesting/functionTests/tests/lang/XplainStatisticsTe
      st.java: * @throws PrivilegedActionException
      java/testing/org/apache/derbyTesting/functionTests/util/CanonTestCase.java:

      • @throws PrivilegedActionException
        java/testing/org/apache/derbyTesting/functionTests/util/FTFileUtil.java:
        throws PrivilegedActionException
        java/testing/org/apache/derbyTesting/functionTests/util/FTFileUtil.java:
        throws PrivilegedActionException
        java/testing/org/apache/derbyTesting/functionTests/util/TestRoutines.java: * @th
        rows PrivilegedActionException
        java/testing/org/apache/derbyTesting/functionTests/util/TestRoutines.java: th
        rows PrivilegedActionException, IOException
        java/testing/org/apache/derbyTesting/junit/BaseJDBCTestCase.java: * @throws
        PrivilegedActionException
        java/testing/org/apache/derbyTesting/junit/BaseTestCase.java: throws Priv
        ilegedActionException
        java/testing/org/apache/derbyTesting/junit/SupportFilesSetup.java: protected
        void setUp() throws PrivilegedActionException, IOException
        java/testing/org/apache/derbyTesting/junit/SupportFilesSetup.java: throws Pri
        vilegedActionException
        java/testing/org/apache/derbyTesting/junit/SupportFilesSetup.java: throws
        PrivilegedActionException, IOException
        java/testing/org/apache/derbyTesting/junit/SystemPropertyTestSetup.java:
        throws PrivilegedActionException
        java/testing/org/apache/derbyTesting/junit/TestConfiguration.java: * @throws
        PrivilegedActionException
        java/tools/org/apache/derby/impl/tools/planexporter/CreateXMLFile.java: * @t
        hrows PrivilegedActionException
        java/tools/org/apache/derby/impl/tools/planexporter/CreateXMLFile.java: * @t
        hrows PrivilegedActionException

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kmarsden Katherine Marsden
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: