db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramandeep Kaur" <ramandhin...@gmail.com>
Subject Re: code coverage: problem in running junit suite lang with emma
Date Thu, 08 Feb 2007 18:19:36 GMT
On 2/8/07, Knut Anders Hatlen <Knut.Hatlen@sun.com> wrote:

> Ramandeep Kaur <ramandhindsa@gmail.com> 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
(ramandhindsa@gmail.com)

Mime
View raw message