db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren" <m.v.lunte...@gmail.com>
Subject Re: Regarding DERBY-2925 and java.security.AccessControlException
Date Mon, 16 Jul 2007 19:09:07 GMT
Ramin,

There's nothing wrong with the test when I run it, so the problem must
be in the code that you did change...If you back out your changes, or
check in a clean svn tree, you probably won't see this either. You
probably did a read of a file, or accessing some system property that
is not within a 'privileged block', which is needed because the tests
run with a SecurityManager installed.

See for info on privileged blocks
http://java.sun.com/j2se/1.4.2/docs/guide/security/doprivileged.html

See for a helpful derby utility for accessing files the class:
org.apache.derby.iapi.util.PrivilegedFileOps.

HTH
Myrna

Mime
View raw message