db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject Re: code coverage: problem in running junit suite lang with emma
Date Thu, 08 Feb 2007 09:53:29 GMT
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"?

-- 
Knut Anders

Mime
View raw message