Issue Details (XML | Word | Printable)

Key: DERBY-624
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Daniel John Debrunner
Reporter: Daniel John Debrunner
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Running derbynetclientmats and derbynetmats requires accessDeclaredMembers permission to be granted with sane=true

Created: 13/Oct/05 11:10 PM   Updated: 12/Jul/06 06:43 AM
Return to search
Component/s: Network Server, Services
Affects Version/s: 10.2.1.6
Fix Version/s: 10.1.2.1, 10.2.1.6

Time Tracking:
Not Specified

Issue Links:
Blocker
 

Resolution Date: 14/Oct/05 11:41 PM


 Description  « Hide
About 17 tests fail if this permission is not granted. Permission should not be required to run Derby in embedded or network server mode.

permission java.lang.RuntimePermission "accessDeclaredMembers";

In some (all?) cases it is because getDeclaredConstrunctor or getDeclaredMethod is called when the getPublic versions would suffice.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #321124 Fri Oct 14 13:59:46 UTC 2005 djd DERBY-624 Remove requirement for the permission accessDeclaredMembers to be granted to all code in the stack when running the embedded engine. Changed calls to use Class.getConstructor/getMethod where possible instead of the getDeclared versions that require the permission.
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
MODIFY /db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/DRDAServerStarter.java
MODIFY /db/derby/code/trunk/java/engine/org/apache/derby/impl/services/bytecode/d_BCValidate.java

Repository Revision Date User Message
ASF #326282 Tue Oct 18 22:36:52 UTC 2005 djd DERBY-624 Remove requirement for the permission accessDeclaredMembers to be granted to all code in the stack when running the embedded engine. Changed calls to use Class.getConstructor/getMethod where possible instead of the getDeclared versions that require the permission.
Merge of trunk revision 321124
Files Changed
MODIFY /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
MODIFY /db/derby/code/branches/10.1/java/engine/org/apache/derby/iapi/jdbc/DRDAServerStarter.java
MODIFY /db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/services/bytecode/d_BCValidate.java