On 2/8/07, Knut Anders Hatlen <[EMAIL PROTECTED]> wrote:

Ramandeep Kaur <[EMAIL PROTECTED]> writes:

> As adding line "permission java.security.AllPermission;" to
> derby_tests.policy makes lang suite to run incompletely, I added line
> "permission java.io.FilePermission "${user.home}${/}coverage.ec",
"write";"
> to derby_tests.policy instead of line "permission
> java.security.AllPermission;" and ran tests as following

[snip]

> Time: 909.446
>
> OK (424 tests)
>
> java.security.AccessControlException: access denied
> (java.io.FilePermissionC:\Documents and Settings\raman\coverage.ec
> read)

[snip]

> I am not sure why exception java.security.AccessControlException gets
thrown
> even though I have "permission java.io.FilePermission
> "${user.home}${/}coverage.ec",
> "write";" in derby_tests.policy file.

Note that the exception message says that access was denied to *read*
the file. Does it work if you specify permission "read, write" instead
of only "write"?


I have tried with
permission java.io.FilePermission "${user.home
}${/}coverage.ec","read,write,delete";
as well, but it did not work.

Thanks,
Ramandeep Kaur
([EMAIL PROTECTED])

Reply via email to