You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2013/04/10 23:47:16 UTC
[jira] [Reopened] (DERBY-6162) Simplify privileged actions in
NetworkServerControlApiTest
[ https://issues.apache.org/jira/browse/DERBY-6162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen reopened DERBY-6162:
---------------------------------------
Reopening. Rick said in a comment on DERBY-3110 that he saw a deprecation warning in NetworkServerControlApiTest on trunk now. I suspect this is because of the changed compiler level. I didn't see that warning myself, but I think deprecation warnings may vary depending on how the compile classpath is set. I will take a look.
> Simplify privileged actions in NetworkServerControlApiTest
> ----------------------------------------------------------
>
> Key: DERBY-6162
> URL: https://issues.apache.org/jira/browse/DERBY-6162
> Project: Derby
> Issue Type: Improvement
> Components: Test
> Affects Versions: 10.11.0.0
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Trivial
> Fix For: 10.11.0.0
>
> Attachments: d6162-1a.diff
>
>
> Noticed two privileged blocks in NetworkServerControlApiTest that could be simplified:
> - privInetAddressGetByName() tests whether the PrivilegedActionException wraps a SecurityException. PAE only wraps checked exceptions, and SecurityException is an unchecked exception, so that can never happen.
> - fileExists() could use the existing helper method PrivilegedFileOpsForTests.exists() and remove its privileged block.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira