[ https://issues.apache.org/jira/browse/DERBY-4816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Myrna van Lunteren updated DERBY-4816: -------------------------------------- Component/s: (was: Test) Removing Test component as we don't want to make mods to the tests as Knut Anders pointed out. > There are quite a few instances in Derby plan exporter and test code where > PrivilegedActionException is thrown instead of the unwrapped exception > -------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-4816 > URL: https://issues.apache.org/jira/browse/DERBY-4816 > Project: Derby > Issue Type: Bug > Components: Tools > Affects Versions: 10.7.1.1 > Reporter: Kathey Marsden > Labels: derby_triage10_8 > > 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)